-
Notifications
You must be signed in to change notification settings - Fork 8k
/
index.md
48 lines (33 loc) · 908 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: "::-moz-list-number"
slug: Web/CSS/::-moz-list-number
---
{{Non-standard_header}}{{CSSRef}}
Le [pseudo-élément CSS](/fr/docs/Web/CSS/Pseudo-éléments) **`::-moz-list-number`** permet de personnaliser l'apparence des numéros des éléments de liste ({{HTMLElement("li")}}) au sein des listes numérotées ({{HTMLElement("ol")}}).
## Syntaxe
```
li::-moz-list-number { propriétés de style }
```
## Exemples
### CSS
```css
li::-moz-list-number {
font-style: italic;
font-weight: bold;
}
```
### HTML
```html
<ol>
<li>Premier élément</li>
<li>Second élément</li>
<li>Troisième élément</li>
</ol>
```
### Résultat
{{EmbedLiveSample("Exemples")}}
## Spécifications
Ce pseudo-élément est un pseudo-élément propriétaire lié à Gecko/Mozilla et ne fait partie d'aucune spécification.
## Voir aussi
- {{cssxref(":-moz-list-bullet")}}
- {{cssxref("::marker")}}