Proprietà CSS list-style-image
Esempio
Specificare un'immagine come indicatore della voce di elenco in un elenco:
ul
{
list-style-image: url('sqpurple.gif');
}
Definizione e utilizzo
La list-style-image
proprietà sostituisce l'indicatore della voce di elenco con un'immagine.
Nota: specificare sempre in aggiunta la proprietà tipo stile elenco . Questa proprietà viene utilizzata se l'immagine per qualche motivo non è disponibile.
Valore di default: | nessuno |
---|---|
Ereditato: | sì |
Animabile: | no. Leggi su animabile |
Versione: | CSS1 |
sintassi JavaScript: | oggetto .style.listStyleImage="url('smiley.gif')" |
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
Property | |||||
---|---|---|---|---|---|
list-style-image | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
Sintassi CSS
list-style-image: none|url|initial|inherit;
Valori di proprietà
Value | Description | Play it |
---|---|---|
none | No image will be displayed. Instead, the list-style-type property will define what type of list marker will be rendered. This is default | |
url | The path to the image to be used as a list-item marker | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Pagine correlate
Tutorial CSS: Elenco CSS
Riferimento CSS: proprietà in stile elenco
Riferimento HTML DOM: proprietà listStyleImage