What are the possible values of the list-style-type property when it is used with ordered lists?
时间: 2023-11-22 17:56:26 浏览: 100
The possible values of the `list-style-type` property when used with ordered lists are:
1. `decimal` (default) - Numbers from 1 to 10, then 11 to 20 and so on.
2. `decimal-leading-zero` - Numbers from 01 to 10, then 11 to 20 and so on.
3. `lower-roman` - Lowercase Roman numerals (i, ii, iii, iv, v, etc.).
4. `upper-roman` - Uppercase Roman numerals (I, II, III, IV, V, etc.).
5. `lower-greek` - Lowercase Greek letters (α, β, γ, δ, ε, etc.).
6. `lower-latin` - Lowercase Latin letters (a, b, c, d, e, etc.).
7. `upper-latin` - Uppercase Latin letters (A, B, C, D, E, etc.).
8. `lower-alpha` - Lowercase alphabetical letters (a, b, c, d, e, etc.).
9. `upper-alpha` - Uppercase alphabetical letters (A, B, C, D, E, etc.).
For example, to set an ordered list to display uppercase Roman numerals, you would use the following CSS:
```
ol {
list-style-type: upper-roman;
}
```
阅读全文