English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
La liste-style-L'attribut typeCSS spécifie le type de marqueur pour l'élément de liste.
Le tableau suivant décrit l'utilisation et l'historique des versions de cet attribut, ainsi que la syntaxe d'utilisation de cet attribut dans le script JavaScript.
valeur par défaut : | disque |
---|---|
applicable à : | élément de liste |
héritage : | oui |
animable : | nonvoir également attribut d'animation. |
version : | CSS 1,2,3 |
JavaScript syntaxe : | objet.style.listStyleType="cercle" |
La syntaxe de cet attribut est la suivante :
list-style-type: disque | cercle | carré | decimal | decimal-leading-zero | minuscule-romain | majuscule-romain | minuscule-grec | minuscule-latin | majuscule-latin | arménien | géorgien | minuscule-alpha | majuscule-alpha | none | initial | inherit
Les exemples suivants montrent comment utiliser la liste-style-attribut type.
ol { list-style-type: decimal-leading-zero; } ul { list-style-type: carré; }testez et voyez‹/›
Le tableau suivant décrit les valeurs de cet attribut.
valeur | description |
---|---|
disque | par défaut. Le marqueur est un cercle plein. |
cercle | Le marqueur est un cercle vide. |
carré | Le marqueur est un carré plein. |
decimal | Le marqueur est un nombre. |
decimal-leading-zero | Numeric markers starting with 0. (01, 02, 03, etc. |
lower-roman | Lowercase Roman numerals (i, ii, iii, iv, v, etc.) |
upper-roman | Capital Roman numerals (I, II, III, IV, V, etc.) |
lower-alpha | The marker is lower-alpha (a, b, c, d, e, etc.) |
upper-alpha | The marker is upper-alpha (A, B, C, D, E, etc.) |
lower-greek | Lowercase Greek letters (alpha, beta, gamma, etc.) |
lower-latin | Lowercase Latin letters (a, b, c, d, e, etc.) |
upper-latin | Capital Latin letters (A, B, C, D, E, etc.) |
hebrew | Traditional Hebrew numbering method |
armenian | Traditional Armenian numbering method |
georgian | Traditional Georgian numbering method (an, ban, gan, etc.) |
cjk-ideographic | Simple ideographic numbers |
hiragana | The marker is: a, i, u, e, o, ka, ki, etc. (Katakana) |
katakana | The marker is: A, I, U, E, O, KA, KI, etc. (Katakana) |
hiragana-iroha | The marker is: i, ro, ha, ni, ho, he, to, etc. (Katakana) |
katakana-iroha | The marker is: I, RO, HA, NI, HO, HE, TO, etc. (Katakana) |
none | Do not specify the marker. |
initial | Set this property to its default value. |
inherit | If specified, the associated elements adopt the parent element's list-style-type attribute values. |
list-style-Browser compatibility of type attribute, the numbers in the following table represent the minimum version number of browsers that support this attribute; all mainstream browsers support this attribute.
|
Please refer to the following tutorials:HTML list,CSS list.
Related properties:list-style,list-style-image,list-style-position.