1
我有一个表。表中的行有复选框和其他控件。我只想打印复选框被检查的行。我搜索了网页,但没有找到解决方案。希望可以有人帮帮我。在此先感谢显示行中使用css的行中的复选框
还有就是我对品脱
#pageTest .dgrd td input[type=checkbox]:checked+tr::before{
display: none;
} CSS
有我的html:
<table>
<tr class="dgrdRed">
<td style="width: 140px;">
<span class="checkBoxClass"><input name="dgrd$ctl15$chkCheckBox" id="dgrd_ctl15_chkCheckBox" type="checkbox"></span>
</td>
<td>
<span id="dgrd_ctl15_lbl"><br>BOWEE</span>
</td>
</tr>
<tr class="dgrdRed">
<td style="width: 140px;">
<span class="inputCheckBox"><input name="dgrd$ctl16$chkCheckBox" id="dgrd_ctl16_chkCheckBox" type="checkbox"></span>
</td>
<td>
<span id="dgrd_ctl16_lbl"><br>BOLT</span>
</td>
</tr>
</table>
选中不应该显示,并检查应该显示。对? –
哪个标签的id =“pageTest”和class =“dgrd”? –
在CSS中你没有选择器来获得父项。你可以做的就是把输入放在桌子前面,在输入站立的地方放置一个标签,这样你就可以使用溺水和儿童选择器来隐藏特定的行 –