一. CSS常用的样式。 1. 和文字相关的样式。 文字大小。 Font-size: 30px; 单位:px,像素。 文字颜色。 Color: red; 文字字体。 Font-family:Kaiti; 文字粗细。 Font-weight:900; 可选值:100~900的值,bold,bolder。 文字水平对齐方式。 Text-align:center; 可选值:left,right,center。 文字行高。 Line-height:100px; 单位:px,像素; 文本装饰器。 Text-decoration: underline; 可选值:underline, overline, line-through, none. 文本缩进。 单词间距。 2. 和背景相关的样式。 3. 其他常用样式。 背景颜色。 Background-color: red; 宽度。 Width:100px; 单位:px,像素。 高度。 Height:100px; 单位:px,像素。 。
|