国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

CSS list

List type

We know that lists can be divided into unordered and ordered, and unordered lists can be distinguished by different tags. The list-style-type attribute can be used to control the tag type. Let's try it out and add it to the html file:

QQ截圖20161208110650.png

<ul class="circle">
    <li>php中文網(wǎng)</li>
    <li>php中文網(wǎng)</li>
</ul>
 
<ul class="square">
    <li>php中文網(wǎng)</li>
    <li>php中文網(wǎng)</li>
</ul>
 
<ol class="upper-roman">
    <li>php中文網(wǎng)</li>
    <li>php中文網(wǎng)</li>
</ol>
 
<ol class="lower-alpha">
    <li>php中文網(wǎng)</li>
    <li>php中文網(wǎng)</li>
</ol>

Add it to the CSS file:

ul.circle {list-style-type:circle}
ul.square {list-style-type:square}
ol.upper-roman {list-style-type:upper-roman}
ol.lower-alpha {list-style-type:lower-alpha}

The following is the result we got:

QQ截圖20161011151920.png

List item image

Sometimes, regular flags are not enough. You may want to use an image for each logo, this can be done using the list-style-image attribute:

ul li {list-style-image : url(xxx.gif)}

You can use an image as a logo by simply using a url() value.

List mark position

CSS2.1 can determine whether the mark appears outside the list item content or inside the content. This is done using list-style-position.

Abbreviated list style

For simplicity, the above 3 list style attributes can be combined into one convenient attribute: list-style, Like this:

li {list-style : url(example.gif) square inside}

list-style values ??can be listed in any order, and the values ??are Can be ignored. As long as one value is provided, the others will be filled in with their default values.

QQ截圖20161011152252.png

Continuing Learning
||
<!doctype html> <html> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body> <ul class="circle"> <li>php中文網(wǎng)</li> <li>php中文網(wǎng)</li> </ul> <ul class="square"> <li>php中文網(wǎng)</li> <li>php中文網(wǎng)</li> </ul> <ol class="upper-roman"> <li>php中文網(wǎng)</li> <li>php中文網(wǎng)</li> </ol> <ol class="lower-alpha"> <li>php中文網(wǎng)</li> <li>php中文網(wǎng)</li> </ol> </body> </html>
submitReset Code