了解HTML CSS格式化排版 文字排版

这里简单的写一些涉及到字体排版中常用到的属性, 大家可以学习查看, 也可以mark下以后看.

font-family: "Micrsoft Yahei"; 设置字体

font-size: 20px; 设置字号

color: red; 设置颜色

font-weight: bold; 文字加粗

font-style: italic; 文字斜体

text-decoration: underline; 文字下划线

text-decoration: line-through; 文字删除线

text-indent: 2em; 段落缩进

text-align; center; 段落排版居中(左右分别是, left, right)

line-height: 2em; 行间距

letter-spacing: 20px; 字间距(中文)

word-spacing: 50px; 单词间距

posted @ 2016-02-14 00:21  JianweiWang  阅读(844)  评论(0编辑  收藏  举报