What is the list style in css

coldplay.xixi
Release: 2023-01-03 09:30:51
Original
3303 people have browsed it

The list styles in css are: 1. css ordered list [ol] and css unordered list [ul]; 2. css list label style [list-style-type]; 3. css label style Display mode [list-style-position].

What is the list style in css

The operating environment of this tutorial: windows7 system, css3 version, DELL G3 computer.

The list style in css is:

1, css ordered list (ol) and css unordered list (ul)

  list.html         列表样式   
  

  

      
  • 水果
        
    1. 苹果
    2.   
    3. 香蕉
    4.   
    5. 梨子
    6.   
      
  •   
  

Copy after login

2. css list label style list-style-type

Attribute value:

  •  circle;Open circle

  • Disc;Solid circle

  • Decimal;Number

  list.css   ul>li{   list-style-type:circle;   }   ul>li>ol>li{   list-style-type:disc;   }
Copy after login

3. The display method of css label style list-style-position

Attribute value: outside (outside the text, default)

inside (with the text)

  list.css   ul{   text-align:center;   list-style-position:outside;   }   ul>li{   list-style-type:circle;   }   ul>li>ol>li{   list-style-type:disc;   }
Copy after login

Related tutorial recommendations:CSS Video Tutorial

The above is the detailed content of What is the list style in css. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!