Html 如何覆盖引导复选框样式
我买了一个引导模板,样式表文件,其代码如下:Html 如何覆盖引导复选框样式,html,css,twitter-bootstrap-3,Html,Css,Twitter Bootstrap 3,我买了一个引导模板,样式表文件,其代码如下: input[type=checkbox], input[type=radio] { opacity: 0; position: absolute; left: -9999px; z-index: 12; width: 18px; height: 18px; cursor: pointer; } 我有一个html表格,其中有一个单元格,带有一个复选框,但没有显示。使用chrome inspector,我修改并关闭了样式属性
input[type=checkbox],
input[type=radio] {
opacity: 0;
position: absolute;
left: -9999px;
z-index: 12;
width: 18px;
height: 18px;
cursor: pointer;
}
我有一个html表格,其中有一个单元格,带有一个复选框,但没有显示。使用chrome inspector,我修改并关闭了样式属性
我的问题是,有没有办法告诉我的代码不要在表格单元格内的复选框中应用这种样式
谢谢
阿尔贝托是的,具体地说是这个复选框,在
复选框中添加一个类
,类似这样的
,然后在css中添加样式到复选框中
input.unique-class[type=checkbox],
input.unique-class[type=radio] {
/*stuff here*/
}
您可以发布表格和复选框的html代码吗?
input[type="radio"], input[type="checkbox"] {
/*stuff here*/
cursor:pointer;
}