字体颜色

color:red;
color:#0000ff;
color:rgb(255,0,0);
color:rgb(255,0,0,.5);

字体大小

字体最小12px
font-size:16px;
font-size:1rem;

文本粗细

粗体:font-weight:bold;
更粗:font-weight:bolder;
更细:font-weight:lighter;
100~900定义由粗到细,400同默认,700同bold
font-weight:800;

字体样式

默认值
font-style:normal;
斜体字
font-style:italic;

字体

微软雅黑

font-family:"Microsoft YaHei";
font-family:"微软雅黑";

2023-07-28T17:31:47.png
中易黑体

font-family:"SimHei";

2023-07-28T17:31:21.png
宋体

font-family:"Simsun";

2023-07-28T17:30:07.png