Esta página ha sido traducida del inglés por la comunidad.Aprende más y únete a la comunidad de MDN Web Docs.
list-style
Baseline Widely available *
This feature is well established and works across many devices and browser versions. It’s been available across browsers since julio de 2015.
* Some parts of this feature may have varying levels of support.
Resumen
La propiedad de estilo de lista (list-style) permite definir de golpe todos los parámetros:list-style-type,list-style-image, ylist-style-position.
Valor inicial: ver propiedades individuales- Se aplica a: elementos con 'display: list-item'
Valor heredado: no- Porcentajes: N/A
- Medio:
visual Valor calculado: ver propiedades individuales
In this article
Sintaxis
list-style: [ list-style-type || list-style-position || list-style-image ] | inherit
Valores
verlist-style-type.
verlist-style-image.
Ejemplos
>HTML
html
List 1<ul> <li>List Item1</li> <li>List Item2</li> <li>List Item3</li></ul>List 2<ul> <li>List Item A</li> <li>List Item B</li> <li>List Item C</li></ul>CSS
css
.one { list-style: circle;}.two { list-style: square inside;}