1
ShikiSuen OP 我写了另一套,结果无法通过 LESS 编译。
.lang(@lang, @content) { &:lang(@{lang}){ @content(); }; } .lang((zh) or (ja) or (ko), { i, cite, em, var, address, dfn {font-style: normal;} .message-body i {border-bottom: dashed 1px @xf-paletteColor3 !important;} }); |
2
ShikiSuen OP 我蠢得飞起。
解决方案:直接用逗号。 :lang(zh), :lang(ja), :lang(ko){ i, cite, em, var, address, dfn {font-style: normal;} .message-body i {border-bottom: dashed 1px @xf-paletteColor3 !important;} } |