【发布时间】:2013-07-30 03:09:42
【问题描述】:
给定下表:
<table id="incidents">
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
使用 jQuery 将以下评估为 false:
$("#incidents tbody").is(":empty")
我想使用 CSS 将内容设置为消息:
#incidents tbody:empty {
content: "<tr>message foo</tr>";
}
:empty 选择器可以应用于 tbody 吗?
【问题讨论】:
标签: jquery html css jquery-selectors css-selectors