【发布时间】:2017-10-04 17:44:37
【问题描述】:
我的页面使用了一系列表格,其中许多表格使用以下 CSS 在左侧添加一个计数器。
table.sortable tbody tr::before {
content: counter(sortabletablescope);
counter-increment: sortabletablescope;
display: table-cell;
}
但有些表我不需要该列。如何覆盖不需要计数器的表的全局 CSS?
【问题讨论】:
-
使用类?
<table class="sortable with-counter">&table.sortable.with-counter tbody tr::before { … }. -
可以修改HTML吗?
-
您需要以某种方式在 html 中识别它
标签: html css jquery-ui-sortable