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

标签 css

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/

相关文章:

javascript - 如何在未在 iframe 中定义的 iFrame 中运行代码?

html - 在 iPad 上滚动

javascript - CSS/JavaScript : Apply javascript according to window width

css - 显示 :none to image if class

html - Css 边缘动画问题

javascript - 文本不会填满 Div

css - 母版页中的 Sharepoint 2013 css 引用

css 外部样式和内部样式的区别

css - Google Webfonts 在 Firefox、Chrome 和 Opera 中的呈现方式不同

css - 样式下拉(选择)框