About List-style modifying list properties in CSS to control the style of Li tags

Source: Internet
Author: User
This article mainly describes the CSS in the List-style modified List Properties control Li tag style problems, has a certain reference value, now share to everyone, there is a need for friends can refer to

The List_style property is used to modify the properties of the list, List-style-type is used to set the list item type, list-style-position is used to set the list item location, List-style-image is used for setting the use of the image substitution list item marker

The List_style property is used to modify the properties of a list

The format is as follows:
List_style: List item tag type list item tag position list item tag;
You can also set the list item tags individually:
List-style-type is used to set the list item type:
The default value is disc as a solid circle,
Common values: none null
Circle Hollow Circle
Square Solid Square
Decimal number
Lower-latin lowercase latin a,b,c .....
Upper-latin Capital Letter A,b,c ....
List-style-position is used to set this list item location:
The default value, outside, is outside the Li label, which is the border:1px solid red that adds a border to Li, and you can see the location of the marker.
Inside indicates that the tag is inside the Li tag and is clearly visible when you add a border as well.
The list-style-image is used to set the tag with the image substitution list item:
Default value: None
Optional value: URL, formatted as URL ("URL address");
Example:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> 

Specify a "List-style-type" attribute to prevent the image from being unavailable.

The above is the whole content of this article, I hope that everyone's learning has helped, more relevant content please pay attention to topic.alibabacloud.com!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.