问问题
30913 次
2 回答
49
是的:
.someClass b {
font-weight: normal;
}
于 2011-04-24T16:26:08.810 回答
0
如果您有一个字体粗细很多的大型项目:粗体;参考,您可以覆盖 eitre 字体:
/* some core files */
b {
font-weight: bold;
}
/* latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v15/mem5YaGs126MiZpBA-UN_r8OUuhp.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body {
font-family: 'Open Sans';
}
/* no override */
body .someclass2 {
font-family: sans-serif;
}
<body>
<div class="someclass">
<b>Some Text</b>
</div>
<div class="someclass2">
<b>Some Text</b>
</div>
</body>
用法:
body {
font-family: 'Open Sans';
}
于 2018-02-27T13:54:04.280 回答