CSS常用文本属性
文本对齐属性(text-align)left (缺省值) right center justify (两端对齐)
文本修饰属性(text-decoration)none (缺省值) underline overline line-through
文本缩进属性(text-indent) (可以用绝对单位(cm, mm, in, pt, pc)或者相对单位 (em, ex, px))
行高属性(line-height)normal (缺省值)
字间距属性(letter-spacing)
颜色属性(color)
{text-align:right}
{text-decoration: underline}
{text-indent: 8mm}
{line-height:1cm}
{letter-spacing: 3mm}
{color:gray}
HTML
划分段落<p>和</p>
正文标题<h1>到<h6>
换行<br>
注释<!--和-->
垂直对齐vertical-align: baseline;(基线) sub;(下标) super;(下标) top; text-top; middle; bottom; text-bottom;
词间距word-spacing: normal; 数值
空格white-space: pre;(保留) nowrap;(不换行)
显示display:block;(块) inline;(内嵌) list-item;(列表项) run-in;(追加部分) compact;(紧凑) marker;(标记) table; inline-table; table-raw-group; table-header-group; table-footer-group; table-raw; table-column-group; table-column; table-cell; table-caption;(表格标题)
定位属性: (Position)
Position: absolute; relative; static;
visibility: inherit; visible; hidden;
overflow: visible; hidden; scroll; auto;
clip: rect(12px,auto,12px,auto)