样式设置
文字样式
文字样式是用来控制字体或文本的显示方式的。

/*字族:STSong作为首选字体, 微软雅黑作为备用字体*/ font-family: "STSong", "微软雅黑"; /*字体大小*/ font-size: 40px; /*字重:100、200、300、400、500、600、700、800、900,值越大字越粗*/ font-weight: 900; /*行高: 字体文本默认在行高中垂直居中显示*/ line-height: 200px; /*字划线: overline(上划线) | line-through(中划线) | underline(下划线) | none(取消划线) */ text-decoration: overline; /*字间距*/ letter-spacing: 2px; /*词间距*/ word-spacing: 5px; /*首行缩进:1em相当于一个字的宽度*/ text-indent: 2em; /*字体颜色*/ color: red; /* 文本水平排列方式:left(水平居左) | center(水平居中) | right(水平居右) */ text-align: center;