因为我已经安装了materialize css。我使用自定义类的按钮时遇到问题。我需要将此边框设置为0。
按钮之前: 按钮后:
我已经尝试过了:
[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;
}
答案 0 :(得分:0)
border:0px,none!important; 是无效的属性值,在 0px 和之间删除(,) 强>
尝试提供以下代码,
border: none !important;
或者
border: 0px !important;
或者
border: 0px none !important;
答案 1 :(得分:0)
border
速记属性的值需要以空格分隔列表的形式提供,而不是逗号分隔。
删除,
和0px
之间的none
。