以前tr 之前没有thead 标签。 现在,对于 tablesorter 功能,我添加了 thead 标签,因为标题样式因默认 thead 样式冲突而不同。我应该在加载窗口时重置 thead 样式。请告诉我如何重置 thead 样式以及表格网格颜色应该如何工作根据以前的现有 CSS。
<thead id="Header">
<tr class="header">
<th class="th-border" id="name">Name</th>
</tr>
</thead>
谢谢,
编辑: 以前没有 thead 标签,每当在我的页表设计中添加 thead 标签时都会发生变化。我不想更改表格样式。请告诉我如何重置默认的 thead 样式?
最佳答案
只需在您的样式选择器前添加 thead
喜欢
thead tr th{
color:blue;
font-weight:bold;
}
关于css - 如何重置 thead 默认样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23509459/