.bordered { border-top: dotted 1px black; border-bottom: solid 2px black;}#menu a { color: #111;
.bordered;}
.post a { color: red;
.bordered;}和.bordered { border-top: dotted 1px black; border-bottom: solid 2px black;}#menu a { color: #111;
.bordered();}
.post a { color: red;
.bordered();}
1 回答

揚帆大魚
TA貢獻1799條經(jīng)驗 獲得超9個贊
Currently and historically, the parentheses in a mixin call are optional, but optional parentheses are deprecated and will be required in a future release.
官網(wǎng)在mixins部分有說明,現(xiàn)有版本和歷史版本在使用mixin的時候括號是可選的,也就是可有可無,但是在未來的版本中會強制要求使用括號,所以為了將來版本的升級,最好加上括號。
參考鏈接less mixins
添加回答
舉報
0/150
提交
取消