Firefox 未正确呈现 Open Sans 半粗体。但是 Chrome 中的相同代码呈现字体。字体安装在我的系统中。是否可以在不使用字体粗细属性的情况下呈现它?
<html>
<style>
p{
font-family:"Open Sans Semibold";
}
</style>
<body>
<p >test</p>
</body>
</html>
最佳答案
如果已安装字体,则在 font-weight
中传递值为 600 而不是在 font-family
属性中指定。
例子:
p {
font-family: 'Open Sans',sans-serif;
font-weight:600;
}
希望这能奏效..
关于html - 如何在不使用字体粗细属性的情况下在 Firefox 中呈现 Open Sans Semibold,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42486284/