一、字体属性
1.默认字体系列
chrome/opera:"宋体"
firefox:"微软雅黑"
safari/IE:Times,"宋体"
2.字体属性
字体类型
font-family 初始化时定义字体类型,如宋体
字体大小
font-size
应用于: 所有元素
继承性: 有
百分数: 相对于父元素的字体大小font-size
默认字体大小
chrome/firefox/opera/IE/safari:16px
最小字体大小
chrome:12px
opera:9px
safari/IE/firefox:无
字体加粗
【1】常用值
font-weight: normal(正常,默认)
font-weight: bold(加粗)
【2】所有值
normal(正常)/bold(粗体)/bolder(更粗)/lighter(更细)
100/200/300/400/500/600/700/800/900 (100为最细,900为最粗)
字体风格
font-style: normal(默认)
font-style: italic(斜体)
font-style: oblique(倾斜)
line-height: normal(默认)
line-height: 具体值
颜色
color:red
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有