Use CSS to define the Li style

Source: Internet
Author: User
Li {list-style-image: URL (images/disc.gif );}

This style definition of Li is to use an image of the list project to replace the small dots displayed. Of course, you can also display other effects. For details, see the following definitions:

CSS definition of list project effects

* List-style-type: Circle (you can change it to the style you want); list project Style

Disc: css1 solid circle

Circle: css1 hollow circle

Square: css1 solid square

Decimal: css1 Arabic numerals

Lower-Roman: css1 lowercase roman numerals

Upper-Roman: css1 uppercase roman numerals

Lower-Alpha: css1 lowercase English letter

Upper-Alpha: css1 capital English letter

None: css1 does not use the project symbol

Armenian: Traditional Armenia numbers in css2

CJK-ideographic: css2 basic ideographic number

Georgian: css2 traditional George number

Lower-Greek: Basic Greek lowercase letters in css2

Hebrew: css2 traditional Hebrew numbers

Hiragana: css2 Japanese hirakana

Hiragana-iroha: css2 Japanese hirakana

Katakana: css2 Japanese Katakana

Katakana-iroha: css2 Japanese Katakana No.

Lower-Latin: css2 lowercase Latin letters

Upper-Latin: css2 capital Latin letters

* List-style-image: URL (images/disc.gif); Use disc.gif to display the list items.

* List-style-position: Outside | inside

Outside: The list item tag is placed outside the text and the surrounding text is not aligned according to the tag

Inside: The list item tag is placed within the text and the surrounding text is aligned according to the tag

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.