2017-07-25 148 views
0

因爲我已經安裝了物化css。我在使用自定義類的按鈕時遇到問題。我需要這個邊界設置爲0。重寫css over materializecss

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; 
} 

回答

0

邊界:0像素,沒有!重要的;和嘗試之間0像素沒有

給下面的代碼無效的屬性值,刪除(),

border: none !important; 

或者

border: 0px !important; 

或者

border: 0px none !important; 
+0

它沒有工作。我用複選框和較大的類型嘗試了所有這些方法 – CmchPt

0

給予border速記屬性的值需要以空格分隔列表的形式提供,而不是以逗號分隔的列表。

刪除0pxnone之間的,

+0

感謝Quentin的回答,但這還不夠。也許這是一個錯誤的類,ngcontent – CmchPt