gpt4 book ai didi

html - 如何在不使用字体粗细属性的情况下在 Firefox 中呈现 Open Sans Semibold

转载 作者:太空宇宙 更新时间:2023-11-04 09:05:26 25 4
gpt4 key购买 nike

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com