English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

CSS Reference Manual

CSS @rules

CSS attribute大全

CSS List-style-type attribute usage and example

The list-style-The type CSS property specifies the type of marker for the list item.

The following table provides usage instructions and version history for this attribute, as well as the syntax for using this attribute in JavaScript scripts.

Default value:disc
Applies to:List item
Inheritance:Yes
Animatable:No.See also Animation properties.
Version:CSS 1,2,3
JavaScript syntax:object.style.listStyleType="circle"

list-style-Syntax of type usage

The syntax of this attribute is as follows:

list-style-type: disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none | initial | inherit

The following examples demonstrate how to use list-style-type attribute.

  ol {
   list-style-type: decimal;-leading-zero;
  }
  ul {
   list-style-type: square;
  }
Test to see‹/›

Attribute value

The following table describes the values of this attribute.

ValueDescription
discDefault. The marker is a solid circle.
circleThe marker is a hollow circle.
squareThe marker is a solid square.
decimalThe marker is a number.
decimal-leading-zeroNumeric markers starting with 0. (0)1, 02, 03, etc.
lower-romanLowercase Roman Numerals (i, ii, iii, iv, v, etc.)
upper-romanCapital Roman Numerals (I, II, III, IV, V, etc.)
lower-alphaThe marker is lower case-alpha (a, b, c, d, e, etc.)
upper-alphaThe marker is upper case-alpha (A, B, C, D, E, etc.)
lower-greekLowercase Greek Letters (alpha, beta, gamma, etc.)
lower-latinLowercase Latin Letters (a, b, c, d, e, etc.)
upper-latinCapital Latin Letters (A, B, C, D, E, etc.)
hebrewTraditional Hebrew Numbering Method
armenianTraditional Armenian Numbering Method
georgianTraditional Georgian Numbering Method (an, ban, gan, etc.)
cjk-ideographicSimple Ideographic Numbers
hiraganaThe markers are: a, i, u, e, o, ka, ki, etc. (Katakana)
katakanaThe markers are: A, I, U, E, O, KA, KI, etc. (Katakana)
hiragana-irohaThe markers are: i, ro, ha, ni, ho, he, to, etc. (Katakana)
katakana-irohaThe markers are: I, RO, HA, NI, HO, HE, TO, etc. (Katakana)
noneDo not specify a marker.
initialSet this attribute to its default value.
inheritIf specified, the associated elements will adopt the parent element's list.-style-type Attribute Values.

Browser Compatibility

list-style-Browser Compatibility of type Attribute, the numbers in the table below indicate the minimum version number of browsers that support this attribute; all mainstream browsers support this attribute.

  • Firefox 1+

  • Google Chrome1+

  • Internet Explorer 4+

  • Apple Safari 1+

  • Opera 4+

Further Reading

Please refer to the following tutorials:HTML List,CSS List.

Related Attributes:list-style,list-style-image,list-style-position.