1疯搅、盒子模型
位置 | 屬性 |
---|---|
外邊距 |
margin 凳兵、margin-top 、margin-right 于游、margin-bottom 谷遂、margin-left
|
邊框 |
border 、border-style 戴已、border-width 、border-color
|
內(nèi)邊距 |
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 |
字符轉(zhuǎn)換 |
direction |
文本方向 |
font |
字體 |
font-family |
字體 |
font-style |
字體傾斜 |
font-weight |
字體加粗 |
font-size |
字體大小 |
text-decoration |
去掉連接下劃線 |
list-style |
列表 |
list-style-type |
設置列表項標志的類型 |