DIV CSS 佈局教程網

您现在的位置: DIV+CSS佈局教程網 >> 網頁腳本 >  >> CSS入門知識 >> CSS詳解
常用 CSS 屬性的英文單字總結與用法
編輯:CSS詳解     

以下整理網頁製作中常用的 CSS 屬性英文單字。這些單字不必強記拼寫,但要求看到就能認得、知道它的屬性與用法。記住它們的小訣竅就是多做、多手寫——推薦使用 Dreamweaver,因為撰寫 CSS 與 HTML 時它會自動跳出提示,多用多看自然就記住了。

1、盒子排版類

float 浮動:設定塊元素的浮動效果,常用值為 left、right。

width 寬:確定盒子本身的寬度。

height 高:確定盒子本身的高度。

clear 清除:清除浮動,常用值 both、left、right。

margin 邊距:控制元素外的間距,含 margin-top、margin-right、margin-bottom、margin-left 四個方向屬性。

padding 內邊距:控制元素內部的留白,同樣含 top、right、bottom、left 四個方向。

2、邊框

border-width 寬度、border-color 顏色、border-style 樣式。顏色可分別設定四邊,瀏覽器會依「上、右、下、左」順時針理解;樣式則有 none、dotted、dashed、solid、double、grove、ridge、inset、outset 等九種。

3、字體屬性

font-family 字體、font-size 大小、font-weight 粗細、font-style 字型、line-height 行高、font-variant 變形、text-transform 大小寫轉換、text-decoration 裝飾(如 underline 下劃線、overline 上劃線、line-through 刪除線等)。

4、背景屬性

background-color 背景顏色、background-image 背景圖像、background-repeat 平鋪方式(no-repeat、repeat、repeat-X、repeat-Y)、background-attachment 是否隨捲動(fixed、scroll)、background-position 位置(left、right、top、bottom、center 或自訂值)。

5、區塊屬性

word-spacing 單字間距、letter-spacing 字母間距、vertical-align 垂直對齊(baseline、sub、super、top、text-top、middle、bottom 等)、text-align 水平對齊(left、right、center、justify)、text-indent 縮進、white-space 空白處理(normal、pre、nowrap)。

6、定位屬性

position 定位類型(absolute、relative、static)、z-index 疊放順序、visibility 顯示(inherit、visible、hidden)、overflow 溢出(visible、hidden、scroll、auto)、left/top 位置,以及 clip 剪輯。

7、清單屬性

list-style-type 類型樣式(disc、circle、square、decimal、lower-roman、upper-roman、lower-alpha、upper-alpha)、list-style-image 項目圖像、list-style-position 位置(inside、outside)。

以上是常用 CSS 英文單字的整理,重點在於看到能認、寫得出,而非死記拼寫。

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved