day52
CSS补充 文字对齐 text-align属性规定元素中文本的水平对齐方式 left: 左边对齐 默认值 right: 右对齐 center: 居中对齐 justify: 两端对齐 文字装饰 text-decoration属性用来给文字添加特殊效果 none:默认,定义标准的文本 underline: 定义文本下的一条线 overline: 定义文本上的一条线 line-through: 穿过文本的一条线 inherit: 继承父元素的text-decoration属性的值 背景属性 背景颜色 background-color: red; 背景图片 background-image: usl('1.jpg'); 背景重复 repeat(默认):背景图片平铺排满整个网页 repeat-x: 背景图片只在水平方向上平铺 repeat-y: 在垂直方向上平铺 no-repeat: 背景图片不平铺 background-repeat: no-repeat/left top; #背景位置 支持简写 background: #336699 url('1.png') no-repeat left top; 边框 边框属性 border-width border-style border-color 边框样式 none: 无边框 dotted: 点状虚线边框 dashed: 矩形虚线边框