覆盖materializecss上的css

时间:2017-07-25 10:29:49

标签: html css styles

因为我已经安装了materialize css。我使用自定义类的按钮时遇到问题。我需要将此边框设置为0。

the css

按钮之前: before 按钮后: after

我已经尝试过了:

[type="checkbox"][_ngcontent-eog-31]    + label[_ngcontent-eog-31]:before, [type="checkbox"][_ngcontent-eog-31]:not(.filled-in)    + label[_ngcontent-eog-31]:after {
  border:  0px, none!important;
}

and

checkbox{
border 0px, none!important;
}

2 个答案:

答案 0 :(得分:0)

border:0px,none!important; 是无效的属性值,在 0px 之间删除(

尝试提供以下代码,

border: none !important;

或者

border: 0px !important;

或者

border: 0px none !important;

答案 1 :(得分:0)

border速记属性的值需要以空格分隔列表的形式提供,而不是逗号分隔。

删除,0px之间的none