1.CSS背景屬性(background)
| 屬性 | 描述 | 
| background | 在一個(gè)聲明中設(shè)置所有的背景屬性 | 
| background-attachment | 設(shè)置背景圖像是否固定或者隨著頁面的其余部分滾動 | 
| background-color | 設(shè)置元素的背景顏色 | 
| background-image | 設(shè)置元素的背景圖像 | 
| background-position | 設(shè)置背景圖像的開始位置 | 
| background-repeat | 設(shè)置是否及如何重復(fù)背景圖像 | 
2.CSS邊框?qū)傩?border與outline)
| 屬性 | 描述 | 
| border | 在一個(gè)聲明中設(shè)置所有的邊框?qū)傩?/td> | 
| border-bottom | 在一個(gè)聲明中設(shè)置所有的下邊框?qū)傩?/td> | 
| border-bottom-color | 設(shè)置下邊框的顏色 | 
| border-bottom-style | 設(shè)置下邊框的樣式 | 
| border-bottom-width | 設(shè)置下邊框的寬度 | 
| border-color | 設(shè)置四條邊框的顏色 | 
| border-left | 在一個(gè)聲明中設(shè)置所有的左邊框?qū)傩?/td> | 
| border-left-color | 設(shè)置左邊框的顏色 | 
| border-left-style | 設(shè)置左邊框的樣式 | 
| border-left-width | 設(shè)置左邊框的寬度 | 
| border-right | 在一個(gè)聲明中設(shè)置所有的右邊框?qū)傩?/td> | 
| border-right-color | 設(shè)置右邊框的顏色 | 
| border-right-style | 設(shè)置右邊框的樣式 | 
| border-right-width | 設(shè)置右邊框的寬度 | 
| border-style | 設(shè)置四條邊框的樣式 | 
| border-top | 在一個(gè)聲明中設(shè)置所有的上邊框?qū)傩?/td> | 
| border-top-color | 設(shè)置上邊框的顏色 | 
| border-top-style | 設(shè)置上邊框的樣式 | 
| border-top-width | 設(shè)置上邊框的寬度 | 
| border-width | 設(shè)置四條邊框的寬度 | 
| outline | 在一個(gè)聲明中設(shè)置所有的輪廓屬性 | 
| outline-color | 設(shè)置輪廓的顏色 | 
| outline-style | 設(shè)置輪廓的樣式 | 
| outline-width | 設(shè)置輪廓的寬度 | 
3.CSS文本屬性(text)
| 屬性 | 描述 | 
| color | 設(shè)置文本的顏色 | 
| direction | 規(guī)定文本的方向/書寫方向 | 
| letter-spacing | 設(shè)置字符間距 | 
| line-height | 設(shè)置行高 | 
| text-align | 規(guī)定文本的水平對齊方式 | 
| text-decoration | 規(guī)定添加到文本的裝飾效果 | 
| text-indent | 規(guī)定文本塊首行的縮進(jìn) | 
| text-shadow | 規(guī)定添加到文本的陰影效果 | 
| text-transform | 控制文本的大小寫 | 
| unicode-bidi | 設(shè)置文本方向 | 
| white-space | 規(guī)定如何處理元素中的空白 | 
| word-spacing | 設(shè)置單詞間距 | 
4.CSS字體屬性(font)
| 屬性 | 描述 | 
| font | 在一個(gè)聲明中設(shè)置所有字體屬性 | 
| font-family | 規(guī)定文本的字體系列 | 
| font-size | 規(guī)定文本的字體尺寸 | 
| font-size-adjust | 為元素規(guī)定aspect值 | 
| font-stretch | 收縮或拉伸當(dāng)前的字體系列 | 
| font-style | 規(guī)定文本的字體樣式 | 
| font-variant | 設(shè)置或檢索對象中的文本是否為小型的大寫字母 | 
| font-weight | 規(guī)定字體的粗細(xì) | 
5.CSS外邊距屬性(margin)
| 屬性 | 描述 | 
| margin | 在一個(gè)聲明中設(shè)置所有的外邊距屬性 | 
| margin-bottom | 設(shè)置元素的下外邊距 | 
| margin-left | 設(shè)置元素的左外邊距 | 
| margin-right | 設(shè)置元素的右外邊距 | 
| margin-top | 設(shè)置元素的上外邊距 | 
6.CSS內(nèi)邊距屬性(padding)
| 屬性 | 描述 | 
| padding | 在一個(gè)聲明中設(shè)置所有的內(nèi)邊距屬性 | 
| padding-bottom | 設(shè)置元素的下內(nèi)邊距 | 
| padding-left | 設(shè)置元素的左內(nèi)邊距 | 
| padding-right | 設(shè)置元素的右內(nèi)邊距 | 
| padding-top | 設(shè)置元素的上內(nèi)邊距 | 
7.CSS列表屬性(list)
| 屬性 | 描述 | 
| list-style | 在一個(gè)聲明中設(shè)置所有的列表屬性 | 
| list-style-image | 將圖像設(shè)置為列表項(xiàng)標(biāo)記 | 
| list-style-position | 設(shè)置列表項(xiàng)標(biāo)記的放置位置 | 
| list-style-type | 設(shè)置列表項(xiàng)標(biāo)記的類型 | 
8.CSS尺寸屬性(dimension)
| 屬性 | 描述 | 
| height | 設(shè)置元素高度 | 
| max-height | 設(shè)置元素的最大高度 | 
| max-width | 設(shè)置元素的最大寬度 | 
| min-height | 設(shè)置元素的最小高度 | 
| min-width | 設(shè)置元素的最小寬度 | 
| width | 設(shè)置元素的寬度 | 
9.CSS定位屬性(positioning)
| 屬性 | 描述 | 
| bottom | 設(shè)置定位元素下外邊距邊界與其包含塊下邊界之間的偏移 | 
| clear | 規(guī)定元素的哪一側(cè)不允許其他浮動元素 | 
| clip | 剪裁絕對定位元素 | 
| cursor | 規(guī)定要顯示的光標(biāo)類型(形狀) | 
| display | 規(guī)定元素應(yīng)該生成的框的類型 | 
| float | 規(guī)定框是否應(yīng)該浮動 | 
| left | 設(shè)置定位元素左外邊距邊界與其包含塊左邊界之間的偏移 | 
| overflow | 規(guī)定當(dāng)內(nèi)容溢出元素框時(shí)發(fā)生的事情 | 
| position | 規(guī)定元素的定位類型 | 
| right | 設(shè)置定位元素右外邊距邊界與其包含塊右邊界之間的偏移 | 
| top | 設(shè)置定位元素的上外邊距邊界與其包含塊上邊界之間的偏移 | 
| vertical-align | 設(shè)置元素的垂直對齊方式 | 
| visibility | 規(guī)定元素是否可見 | 
| z-index | 設(shè)置元素的堆疊順序 | 
10.CSS表格屬性(table)
| 屬性 | 描述 | 
| border-collapse | 規(guī)定是否合并表格邊框 | 
| border-spacing | 規(guī)定相鄰單元格邊框之間的距離 | 
| caption-side | 規(guī)定表格標(biāo)題的位置 | 
| empty-cells | 規(guī)定是否顯示表格中的空單元格上的邊框和背景 | 
| table-layout | 設(shè)置用于表格的布局算法 | 
新聞熱點(diǎn)
疑難解答
圖片精選