1、盒子模型
| 位置 | 属性 |
|---|---|
| 外边距 |
margin、margin-top、margin-right、margin-bottom、margin-left
|
| 边框 |
border、border-style、border-width、border-color
|
| 内边距 |
padding、padding-top、padding-right、padding-bottom、padding-left
|
| 元素 |
width、height
|
2.定位
| 属性 | 值 |
|---|---|
position |
absolute、fixed、relative、static、inherit
|
top |
值 |
right |
值 |
bottom |
值 |
left |
值 |
overfiow |
visible、hidden、scroll、auto、inherit
|
float |
left、right、none、inherit
|
clear |
left、right、both、none、inherit
|
3、其他样式
| 名称 | 作用 |
|---|---|
background |
背景声明 |
background-color |
背景色 |
background-image |
背景图片 |
background-position |
背景定位 |
text-indent |
文本缩进 |
text-align |
文本对其 |
word-spacing |
字间距 |
text-transform |
字符转换 |
direction |
文本方向 |
font |
字体 |
font-family |
字体 |
font-style |
字体倾斜 |
font-weight |
字体加粗 |
font-size |
字体大小 |
text-decoration |
去掉连接下划线 |
list-style |
列表 |
list-style-type |
设置列表项标志的类型 |