text-align: left(默认) | center | right; 文字居左|中|右
font-weight: normal (默认) | bold | bolder
border
语法:
border: border-width border-style border-color;
备注:
1. border-style 属性指定要显示的边框类型。
- dotted - 定义点线边框
- dashed - 定义虚线边框
- solid - 定义实线边框
- double - 定义双边框
2. 可以给上下左右分别设置边框:
border-top border-bottom border-left border-right
3. 可以给上下左右任意一边或者所有边取消边框,如:border: none;
background
background-color: #f66;
background-image: url('../../test.png');
background-repeat: repeat (默认) | repeat-x | repeat-y | no-repeat;
background-position: x y; (横向纵向偏移量,单位:px | %)
background-size: x y; (背景填充的宽高,单位:px | % 。也可以直接设置为background-size: contain | cover)
简写:
background: #f66 url('../../test.png') no-repeat 100% 50%; (可以少写,但是顺序不能错)
background-size: 100% 100%;