如何用CSS访问不同表的第一行tr
班级名称。
<div id="right">
<table>
<tbody>
<tr class="head">
<td >Date</td><td>Info</td><td>More</td>
</tr>
<tr><td>...</td></tr></table>
</div>
如何制作这个CSS
#right table tr:first-child td:first-child {
border-top-left-radius: 10px;
}
#right table tr:first-child td:last-child {
border-top-right-radius: 10px;
}
仅适用于 .head
#right .head td:first-child{
border-top-left-radius: 10px;
}
#right .head td:last-child {
border-top-right-radius: 10px;
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)