我有一个包含TreeView的div,如下所示:
<div style="position: relative; left: 0px; top: -160px;" class="TreeView">
<asp:TreeView ID="TreeView1" runat="server" ImageSet="Simple" ShowLines="True" ShowCheckBoxes="All">
</asp:TreeView>
</div>
如果我有以下样式:
#cpMainContent_TreeView1n0CheckBox {
margin: 0;
padding: 0;
width: 10px;
}
我的复选框显示了我想要的样子,但实际上我希望TreeView中的所有复选框都具有相同的样式,我尝试过:
.TreeView.input[type="checkbox"] {
margin: 0;
padding: 0;
width: 10px;
}
但这是行不通的。我究竟做错了什么?
使用空格字符获取子成员。如果TreeView
IDcpMainContent_TreeView1
在浏览器中,请尝试以下操作:
#cpMainContent_TreeView1 input[type="checkbox"] {
margin: 0;
padding: 0;
width: 10px;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句