CSS list-style-type
CSS list-style-type can be used to set the bullets of ul li or ol li, whether it is ul li unsorted items or ol li sorted items list, you can use CSS list-style-type to modify the label of each item Symbols, such as unmarked, hollow circles, filled circles, uppercase English letters, lowercase English letters, numbers, squares and even Roman numerals, are all common marking methods. In other words, there are many different CSS list-style-types. The style can be used.
CSS list-style-type example reference
<!--
ul.A {
list-style-type:decimal;
}
ol.B {
list-style-type:lower-roman;
}
-->
</style>
< ul class="A">
<li>Project One</li>
<li>Project Two</li>
</ul>
<ol class="B">
<li>Project One</li>
<li>Project Two</li>
</ol>
- Item one
- Item two
- Item one
- Item two
CSS list-style-type common parameter list
parameter | definition |
none | No symbol |
disc | Solid round |
circle | Hollow circle |
square | Solid square |
lower-alpha | Lowercase english letters |
upper-alpha | Uppercase english letters |
decimal | Arabic numerals |
decimal-leading-zero | Arabic numerals in decimal system with zeros in front |
armenian | Armenian |
lower-greek | Greek |
lower-roman | Lowercase roman numerals |
upper-roman | Uppercase roman numerals |
Bring in examples of common parameters
<li>none</li>
<li>none</li>
</ul>
<ul style="list-style-type:decimal;">
<li>decimal</li>
<li>decimal</li>
</ul>
<ul style="list-style-type:decimal-leading-zero;">
<li>decimal-leading-zero</li >
<li>decimal-leading-zero</li>
</ul>
<ul style="list-style-type:lower-alpha;">
<li>lower-alpha</li>
<li>lower-alpha </li>
</ul>
<ul style="list-style-type:upper-alpha;">
<li>upper-alpha</li>
<li>upper-alpha</li>
</ul>
<ul style="list-style-type:lower-roman;">
<li>lower-roman</li>
<li>lower-roman</li>
</ ul>
- none
- none
- decimal
- decimal
- decimal-leading-zero
- decimal-leading-zero
- lower-alpha
- lower-alpha
- upper-alpha
- upper-alpha
- lower-roman
- lower-roman
Post a Comment
0 Comments