整理 W3CSchool 常用的CSS屬性列表

2021-07-25 10:37:31 字數 3660 閱讀 1158

整理 w3cschool 常用的css屬性列表

摘選自:

**最右列的數字標識支援的css最低版本。

css背景屬性(background)

css背景屬性(background) 屬性 描述 css

background 在乙個宣告中設定所有的背景外掛程式 1

background-attachment 設定背景影象是否固定或者隨著頁面的其餘部分滾動 1

background-color 設定元素的背景顏色 1

background-image 設定元素的背景影象 1

background-position 設定背景影象的開始位置 1

background-repeat 設定是否及如何重複背景影象 1

css邊框屬性(border和outline)

css邊框屬性(border和outline) 屬性 描述 css

border 在乙個宣告中設定所有的邊框屬性 1

border-bottom 在乙個宣告中設定所有的下邊框屬性 1

border-bottom-color 設定下邊框的顏色 2

border-bottom-style 設定下邊框的樣式 2

border-bottom-width 設定下邊框的寬度 1

border-color 設定四條邊框的顏色 1

border-left 在乙個宣告中設定所有的左邊框屬性 1

border-left-color 設定左邊框的顏色 2

border-left-style 設定左邊框的樣式 2

border-left-width 設定左邊框的寬度 1

border-right 在乙個宣告中設定所有右邊框的屬性 1

border-right-color 設定右邊框的顏色 2

border-right-style 設定右邊框的樣式 2

border-right-width 設定右邊框的寬度 1

border-style 設定四條邊框的樣式 1

border-top 在乙個宣告中設定所有上邊框的屬性 1

border-top-color 設定上邊框的顏色 2

border-top-style 設定上邊框的樣式 2

border-top-width 設定上邊框的寬度 1

border-width 設定四條邊框的寬度 1

outline 在乙個宣告中設定所有的輪廓屬性 2

outline-color 設定輪廓的顏色 2

outline-style 設定輪廓的樣式 2

outline-width 設定輪廓的寬度 2

css文字屬性(text)

css文字屬性(text) 屬性 描述 css

color 設定文字的顏色 1

direction 規定文字的方向/書寫方向 2

letter-spacing 設定字元間距 1

line-height 設定行高 1

text-align 規定文字的水平對齊方式 1

text-decoration 規定新增到文字的裝飾效果 1

text-indent 規定文字塊首行的縮排 1

text-shadow 規定新增到文字的陰影效果 2

text-transform 控制文字的大小寫 1

unicode-bidi 設定文字方向 2

white-space 規定如何處理元素中的空白 1

word-spacing 設定單詞間距 1

css字型屬性(font)

css字型屬性(font) 屬性 描述 css

font 在乙個宣告中設定所有字型屬性 1

font-family 規定文字的字型系列 1

font-size 規定文字的字型尺寸 1

font-size-adjust 為元素規定aspect值 2

font-stretch 收縮或拉伸當前的字型系列 2

font-style 規定文字的字型壓實 1

font-variant 規定文字的字型樣式 1

font-weight 規定字型的粗細 1

css外邊距屬性(margin)

css外邊距屬性(margin) 屬性 描述 css

margin 在乙個宣告中設定所有的外邊距屬性 1

margin-bottom 設定元素的下外邊距 1

margin-left 設定元素的左外邊距 1

margin-right 設定元素的右外邊距 1

margin-top 設定元素的上外邊距 1

css內邊距屬性(padding)

css內邊距屬性(padding) 屬性 描述 css

padding 在乙個宣告中設定所有的內邊距屬性 1

padding-bottom 設定元素的下內邊距 1

padding-left 設定元素的左內邊距 1

padding-right 設定元素的右內邊距 1

padding-top 設定元素的上內邊距 1

css列表屬性(list)

css列表屬性(list)

屬性 描述 css

list-style 在乙個宣告中設定所有的列表屬性 1

list-style-image 將影象設定為列表項標記 1

list-position 設定列表項標記的放置位置 1

list-style-type 設定列表項標記的型別 1

css尺寸屬性(dimension)

css尺寸屬性(dimension) 屬性 描述 css

height 設定元素高度 1

max-height 設定元素的最大高度 2

max-width 設定元素的最大寬度 2

min-height 設定元素的最小高度 2

min-width 設定元素的最小寬度 2

width 設定元素的寬度 1

css定位屬性(positioning)

css定位屬性(positioning) 屬性 描述 css

bottom 設定定位元素下外邊距邊界與其包含塊下邊界之間的偏移 2

clear 規定元素的哪一側不允許其他浮動元素 1

clip 剪裁絕對定位元素 2

cursor 規定要顯示的游標型別(形狀) 2

display 規定元素應該生成的框的型別 1

float 規定框是否應該浮動 1

left 設定定位元素左外邊距邊界與其包含塊左邊界之間的偏移 2

overflow 規定當內容溢位元素框時發生的事情 2

position 規定元素定位型別 2

right 設定定位元素右外邊距邊界與其包含塊右邊之間的偏移 2

top 設定定位元素上外邊距邊界與其包含塊上邊之間的偏移 2

vertical-align 設定元素的垂直對其方式 1

visibility 規定元素是否可見 2

z-index 設定元素的堆疊順序 2

css**屬性(table)

css**屬性(table) 屬性 描述 css

border-collapse 規定是否合併**邊框 2

border-spacing 規定相鄰單元格邊框之間的距離 2

caption-side 規定**標題的位置 2

empty-cells 規定是否顯示**中的空單元格上的邊框和背景 2

table-layout 設定用於**的布局演算法

sql 基本語句(摘自w3c school)

select select 列名稱 from 表名稱 select from 表名稱 select lastname,firstname from persons insert insert into 表名稱 values 值1,值2,insert into table name 列1,列2,val...

觀w3cschool 筆記 自己理解的

陣列 用中括號括起來的一組相同的型別不同名稱 如車的名字 var car new array audi bmw volve 物件 用花括號括起來的乙個物體,裡面有其屬性及其屬性值 如乙個人有姓名 性別 年齡 var person undefined 表示當變數建立時並沒有賦予其值 物件就是變數,擁有...

JS例項學習筆記 w3cschool 菜鳥教程

document.write this is a string 生成普通文字 document.write date html 函式 document.write html,生成標籤var name prompt please input your name anne 後面的引數為輸入框的預設值va...