Why does List-style-type always expire in CSS?

Source: Internet
Author: User
The List-style property is generally set to none. Need to add "•" or other symbols preferably directly with the keyboard input or with escape symbols

Ul{list-style:none; margin:0; padding:0} UI li{line-height:npx;} generally 20px;

As long as this setting, there is no problem.

The general CSS is put li{list-style:none;}


When you need to use it, define it separately.

Li{background:url (...);}

(b) To explore why List-style-type is always ineffective?

The key is to apply float:left; attributes, and list-style-position:outside; property is caused by the. The reasons are as follows:

1. Left float will make the box model one by one transverse rehearsal
2. The position of the list symbol is outside the box model
3. So the symbol for the second list item is covered by the first list item

Workaround:

[code= "CSS"] li {   list-style-position:inside;} [/code]

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.