//!important關鍵字 使用!important關鍵字混入調用之后,以標記它繼承的所有屬性!important,example: .test{ background:red; font-size:18px; color:blue; } .study{ .test()!important; } //ouput css .test { background: red; font-size: 18px; color: blue; } .study { background: red !important; font-size: 18px !important; color: blue !important; } 同樣的在這里mixin函數后的括號仍然為可選,比如這樣也是對的:.study{.test!important;}
作者:leona
原文鏈接:http://www.cnblogs.com/leona-d/p/6296635.html
版權聲明:本文版權歸作者和博客園共有,歡迎轉載,但未經作者同意必須保留此段聲明,且在文章頁面明顯位置給出原文鏈接