用法上下文 [表格] 关键字的含义 bold等于700 normal等于400 bolder和ligher将指示浏览器使用比当前元素的父母更粗或更细的字体粗细(分别)。子元素将继承计算的字体粗细。
:enum('normal','bold','100','200','300','400','500','600','700','800','900') 指定字体重量。
php$str = "A 'quote' is bold";// Outputs: A 'quote' is <b>bold</b>echo htmlentities
CSS em{ font-weight:bold;}.syn{ font-synthesis:styleweight;}.no-syn{ font-synthesis:none;} 结果 规范

扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2026 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059
粤公网安备44030502008569号
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号
