CSSLint 提示这些规则是未知的:
@bulletproof-font-face {
font-family: "Computer Modern";
src: url('cmunss-webfont.woff') format('woff');
}
@bulletproof-font-face {
font-family: "Computer Modern";
src: url('cmunsi-webfont.woff') format('woff');
font-style: italic, oblique;
}
@bulletproof-font-face {
font-family: Arial;
src: url('arial-webfont.woff') format('woff');
}
@bulletproof-font-face {
font-family: Verdana;
src: url('verdana-webfont.woff') format('woff');
}
然而,例如,这条规则它认为没问题:
@bulletproof-font-face {
font-family: "Computer Modern";
src: url('cmunsx-webfont.woff') format('woff');
font-weight: bold;
}
我看不出有什么区别。为什么要这样做?
最佳答案
关于CSLint 调用@bulletproof-font-face 'unknown',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25944612/