gpt4 book ai didi

CSS: "bolder"和 "bold"字体粗细样式有什么区别?

转载 作者:技术小花猫 更新时间:2023-10-29 10:08:31 25 4
gpt4 key购买 nike

font-weight: bolder;font-weight: bold; 样式有什么区别?

直到今天我在我们元素的 CSS 文件中找到它时,我才遇到这样的样式。结果在视觉上是相同的(在 Ubuntu 10.10、Firefox 3.6.15 上测试)。

最佳答案

bolderrelative font weight :

The 'bolder' and 'lighter' values select font weights that are relative to the weight inherited from the parent

bolderlighter 甚至是 official spec 的一部分.如何解释和显示它们取决于浏览器。

事实上,它们在视觉上看起来是一样的,这是因为大多数浏览器没有正确支持超出 boldnormal 的字体粗细变化。

这是一个带有背景信息的问题:Are all CSS font-weight property's values useful?

关于CSS: "bolder"和 "bold"字体粗细样式有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5592868/

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