CSS list-style-type 属性有助于设置列表项元素的标记。标记的颜色将与其应用到的元素的颜色保持相同。
很少有 HTML 元素,如 <li> 和 <summary> 的默认值为 display: list-item。任何带有 display: list-item 的元素都可以在其上设置列表样式类型属性。
此外,cjk-ideographic 与 trad-chinese-ininformal 相同,因为它是遗留需求所必需的。
语法
CSS 属性 list-style-type 可以有不同的值。让我们检查所有可能的可用语法,为 list-style-type 设置一个值。
@counter式价值
字符串值
关键字值
Global 值
适用于
列表项。<li> 和 <summary> 等元素,以及所有具有 display: list-item 的元素。
DOM 语法
可能的值
CSS 属性 list-style-type 可以具有以下值之一:
- <custom ident>:它是与@counter样式的值或任何一种预定义样式的值匹配的标识符。
- symbols():设置列表的匿名样式。
- <string>:项目的标记决定了传递的字符串值。
- none:未设置列表项的标记。
CSS list-style-type - 十进制
以下是 list-style-type 的示例:有序列表的十进制 CSS 属性:
CSS list-style-type - 小数前导零
以下是有序列表的 list-style-type: decimal-leading-zero CSS 属性的示例:
CSS list-style-type - upper-alpha
下面是 list-style-type 的示例: upper-alpha 有序列表的 CSS 属性:
CSS list-style-type - lower-alpha
以下是 list-style-type 的示例: order-list 的 lower-alpha CSS 属性:
CSS list-style-type - 低希腊语
以下是有序列表的 list-style-type: lower-greek CSS 属性的示例:
CSS list-style-type - 上希腊语
下面是一个 list-style-type: upper-greek CSS 属性的有序列表示例:
CSS list-style-type - 下罗马语
以下是有序列表的 list-style-type: lower-roman CSS 属性的示例:
CSS list-style-type - 大罗马
以下是 list-style-type 的示例: upper-roman CSS 属性用于有序列表:
CSS list-style-type - 下拉丁语
下面是 list-style-type: 下拉丁语 CSS 属性的有序列表示例:
CSS list-style-type - 大拉丁文
下面是 list-style-type: 有序列表的上拉丁语 CSS 属性的示例:
CSS list-style-type - none
下面是 list-style-type 的示例: none 有序列表的 CSS 属性:
CSS list-style-type - 光盘
下面是 list-style-type 的示例: disc CSS 属性用于无序列表:
CSS list-style-type - circle
下面是一个 list-style-type 的示例: circle CSS 属性用于无序列表:
CSS list-style-type - 正方形
下面是一个 list-style-type: square CSS 属性的无序列表示例:
CSS list-style-type - none
下面是一个 list-style-type 的示例: none 无 无序列表的 CSS 属性:
CSS list-style-type - 阿拉伯语-印度语
下面是一个CSS list-style-type:arabic-indic 属性的示例,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 亚美尼亚语
以下是 CSS list-style-type :<counter-style> 属性示例 的值的无序列表的亚美尼亚语:
CSS list-style-type - 孟加拉语
下面是 list-style-type 的示例: 具有 <counter-style> 值的无序列表的孟加拉语 CSS 属性:
CSS list-style-type - 柬埔寨语
下面是一个 list-style-type 的示例:具有 <counter-style> 值的无序列表的柬埔寨 CSS 属性:
CSS list-style-type - cjk-earthly-branch
以下是 list-style-type 的示例: cjk-earthly-branch 具有 <counter-style> 值的无序列表的属性:
CSS list-style-type - cjk-heavenly-stem
以下是 list-style-type 的示例: cjk-heavenly-stem CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - cjk-ideographic
下面是一个 list-style-type 的示例: cjk-ideographic CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 梵文
以下是 list-style-type 的示例: devanagari CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 埃塞俄比亚语-数字
下面是 list-style-type 的示例:具有 <counter-style> 值的无序列表的 ethiopic-numeric CSS 属性:
CSS list-style-type - 格鲁吉亚语
下面是一个 list-style-type 的示例: 具有 <counter-style> 值的无序列表的格鲁吉亚 CSS 属性:
CSS list-style-type - 古吉拉特语
下面是 list-style-type 的示例: 带有 <counter-style> 值的无序列表的古吉拉特语 CSS 属性:
CSS list-style-type - gurmukhi
下面是一个 list-style-type 的示例: gurmukhi 具有 <counter-style> 值的无序列表的属性:
CSS list-style-type - 希伯来语
下面是 list-style-type 的示例:具有 <counter-style> 值的无序列表的希伯来语 CSS 属性:
CSS list-style-type - 平假名
以下是 list-style-type 的示例: 平假名 CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 平假名-iroha
以下是 list-style-type 的示例: hiragana-iroha 具有 <counter-style> 值的无序列表的属性:
CSS list-style-type - 日语正式
以下是 list-style-type 的示例: japanese-formal CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 日语非正式
下面是 list-style-type 的示例: japanese-informal CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 卡纳达语
下面是 list-style-type 的示例: 卡纳达语 CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 片假名
以下是 list-style-type 的示例: 片假名 CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 片假名伊吕波
以下是 list-style-type 的示例: katakana-iroha 具有 <counter-style> 值的无序列表的 CSS 属性:
CSS list-style-type - 韩文韩文正式版
以下是 list-style-type 的示例: korean-hangul-formal CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 韩文汉字正式版
以下是具有 <counter-style> 值的无序列表的 list-style-type: korean-hanja-formal CSS 属性的示例:
CSS list-style-type - 老挝语
下面是 list-style-type 的示例: lao CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 下亚美尼亚语
下面是一个 list-style-type 的示例: 下亚美尼亚语 CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 马拉雅拉姆语
下面是一个 list-style-type 的示例: malayalam CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 蒙古语
下面是一个 list-style-type 的示例: 蒙古语 CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 缅甸
下面是 list-style-type 的示例: 缅甸 具有 <counter-style> 值的无序列表的 CSS 属性:
CSS list-style-type - oriya
下面是一个 list-style-type 的示例: oriya CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 波斯语
下面是一个 list-style-type 的示例:带有 <counter-style> 值的无序列表的波斯语 CSS 属性:
CSS list-style-type - simp-chinese-formal
以下是 list-style-type 的示例: simp-chinese-formal CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - simp-chinese-informal
以下是 list-style-type 的示例: simp-chinese-informal CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 泰米尔语
下面是一个 list-style-type 的示例: tamil CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 泰卢固语
下面是 list-style-type 的示例: 泰卢固语 CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 泰语
下面是 list-style-type 的示例: 具有 <counter-style> 值的无序列表的 thai CSS 属性:
CSS list-style-type - 藏文
下面是 list-style-type 的示例: 具有 <counter-style> 值的无序列表的藏文 CSS 属性:
CSS list-style-type - 繁体中文正式版
以下是具有 <counter-style> 值的无序列表的 list-style-type: trad-chinese-formal CSS 属性的示例:
CSS list-style-type - 繁体中文非正式
以下是具有 <counter-style> 值的无序列表的 list-style-type: trad-chinese-informal CSS 属性的示例:
CSS list-style-type - 上亚美尼亚语
下面是一个 list-style-type 的示例: upper-armenian CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 披露打开
以下是 list-style-type 的示例: disclosure-open CSS 属性,用于具有 <counter-style> 值的无序列表:
CSS list-style-type - 披露已关闭
以下是 list-style-type 的示例: disclosure-closed CSS 属性,用于具有 <counter-style> 值的无序列表: