Home > Web Front-end > CSS Tutorial > Detailed introduction to CSS basic style list

Detailed introduction to CSS basic style list

高洛峰
Release: 2017-03-26 11:30:29
Original
1451 people have browsed it

This article mainly introduces the CSS basic style list in detail, which has certain reference value. Interested friends can refer to it

1. The CSS list attribute allows placing and changing the list mark. Or use the image as a list item mark

2. Attribute

List-style Abbreviation list item

list-style-image List item image

ul li{
    list-style-image: url("1.jpg");
}
Copy after login

list-style-position list mark position

ul.ul1{
    list-style-position: inside;
}
ul.ul2{
    list-style-position: outside;
}
Copy after login

list-style-type list type

ul li{
    list-style-type:circle;
}
ul li{
    list-style-type:decimal;
}
Copy after login

The above is the detailed content of Detailed introduction to CSS basic style list. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template