Skip to main content

README

normal定义标准的字符
bold定义粗体字符指定外观的重量大于继承的值
lighter定义更细的字符指定外观的重量小于继承的值

|如果值为 bolder 或者 lighter,如果父对象的值为 normal,子对象值设为 bolder,则最终以 bold,即粗体显示。 | 100 | | | | 200 | | | | 300 | | | | 400 | normal、regular| 默认无需设置 | | 500 | 移动端无500,使用bolder|| | 600 | 移动端无600,使用bolder|| | 700 | bold | | | 800 | | | | 900 | | | | inherit | 规定应该从父元素继承字体的粗细。 | |

笔记

  • 不推荐使用数字定义font-weight,使用标准字符定义

参考

font-weight失效移动安卓处理方法