CSS:“ bolder”和“ bolder”之间有什么区别和“粗体”表示字体粗细样式? [英] CSS: what is the difference between "bolder" and "bold" font-weight styles?

查看:296
本文介绍了CSS:“ bolder”和“ bolder”之间有什么区别和“粗体”表示字体粗细样式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

font-weight:粗体; font-weight:粗体; 样式有什么区别?

直到今天,当我在我们项目的CSS文件中找到它时,我才遇到过这种样式。结果在视觉上是相同的(在Ubuntu 10.10,Firefox 3.6.15上进行了测试)。

I never met such style until today, when I found it in our project's CSS file. Result is the same visually (tested on Ubuntu 10.10, Firefox 3.6.15).

推荐答案

bolder 相对字体粗细


'bolder'和'lighter'值选择相对于从父级继承的粗细的字体粗细

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

bolder 打火机甚至是官方规范的一部分。

bolder and lighterare even part of the official spec. How they are interpreted and displayed is up to the browser.

它们在外观上看起来相同的事实是因为大多数浏览器不正确支持超过<$的字体粗细变化c $ c> bold 和 normal

The fact that they appear the same visually is because most browsers don't properly support font weight variations beyond bold and normal.

这是一个有关背景信息的问题: 所有CSS font-weight属性的值有用吗?

Here's a question with background info: Are all CSS font-weight property's values useful?

这篇关于CSS:“ bolder”和“ bolder”之间有什么区别和“粗体”表示字体粗细样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆