CSS手冊簡編 列表屬性

2021-04-17 07:01:50 字數 1641 閱讀 6739

trong>

css屬性:

7、列表屬性:

這裡的屬性用來描述列表(list)的一系列屬性。

list-style-type屬性描述用於列表每一項前使用的符號:

屬性名稱: 'list-style-type'

屬性值: disc | circle | square | decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | none

初始值: disc

適合物件: 列表元素

是否繼承: yes

百分比備註: 被禁止

屬性值含義為:

disc:圓餅形。

circle:空心圓形。

square:方形。

decimal:十進位制數值。

lower-roman:小寫羅馬數字。

upper-roman:大寫羅馬數字。

lower-alpha:小寫希臘字母。

upper-alpha:大寫希臘字母。

例如:

this is the first item.

this is the second item.

this is the third item.

還可以利用list-style-image把列表前面的符號換為圖形:

屬性名稱: 'list-style-image'

屬性值: | none

初始值: none

適合物件: 列表元素

是否繼承: yes

百分比備註: 被禁止

可以是絕對位址,也可以是相對位址。

list-style-position屬性用於描述列表的位置顯示:

屬性名稱: 'list-style-position'

屬性值: inside | outside

初始值: outside

適合物件: 列表元素

是否繼承: yes

百分比備註: 被禁止

屬性值outside和inside分別表示在box外部顯示或內部顯示,例如:

list-style屬性為以上屬性的快捷方式:

屬性名稱: 'list-style'

屬性值: <'list-style-type'> || <'list-style-position'> || <'list-style-image'>

初始值: no

適合物件: 列表元素

是否繼承: yes

百分比備註: 被禁止

例如:

ul /* 對任何ul有效*/

ul ~ ul /* 對任何ul內部的ul標記有效*/

CSS屬性列表

css屬性列表 我要學習學習再學習 伊派 屬性名稱 字型屬性 font font family font style font variant font weight font size 顏色和背景屬性 color background color background image backgrou...

CSS屬性列表

屬性名稱 字型屬性 font font family font style font variant font weight font size 顏色和背景屬性 color background color background image background repeat background ...

CSS屬性列表

gn center 屬性名稱 字型屬性 font font family font style font variant font weight font size 顏色和背景屬性 color background color background image background repeat b...