首页 > 技术文章 > HTML无序列表和有序列表

Yimi 2016-09-07 19:07 原文

html无序列表<ul><li></li></ul>  

ul属性设定:<ul type="square">

常用属性值

type="disc"实心圆点(默认)

type="circle"空心圆

type="square"空心正方形

<html>
<head></head>
<body>
<ul>
<li>aaaaaaaa</li>
<li>bbbbbbbb</li>
<li>cccccccc</li>
</ul>
</body>
</html>

html有序列表<ol><li></li></ol>  order有序的

type的值还可以是“a”,“A”,“i","I".....

<html>
<head></head>
<body>
<ol type="1">
<!--type的值还可以是“a”,“A”,“i","I"-->
<li>aaaaaaaa</li>
<li>bbbbbbbb</li>
<li>cccccccc</li>
</ol>
</body>
</html>

 

<html>
<head></head>
<body>
<ol type="1" start="6">
<!--type的值还可以是“a”,“A”,“i","I"-->
<li>aaaaaaaa</li>
<li>bbbbbbbb</li>
<li>cccccccc</li>
</ol>
</body>
</html>

 

推荐阅读