/// html/css-html-列表-1~

body

有序列表

<ol></ol>有序列表

<li></li>列表项

<ol>

<li> </li>

<li> </li>

</ol>

ol属性:start  type,表示当前列表符号类型:条目符号开始的值,符号类型(1 a A I i )

<ol start=""  type="a" > 

li属性<li value="" type="" > 这个更优先,没很大用处,

无序列表

<ul></ul>    <li>

type:circle(空心圆)/ disc(实心圆)/square(实心方)

嵌套列表:互相套都可以,3层最多了

<ol>

<li></li>

<li>

<ol></ol>

</li>

</ol>

可以锚点

<style>

a{ text-decoration:none;

   color:  ;}

</style><ol type="">

<li> <a href="#"></a>asd</li>

<li> <a href="#" ></a>asd

<ol> <a href="#"></a>asdd</ol>

</li><a href="#"></a>

</ol>

定义列表

<dl><dt><dd>

<dl>自定义列表

<dt>元素,列表分类

<dd>定义列表中的列表项

<style>

dd::before{content:‘a’};

</style>

<dl>

<dt>sa</dt>

<dd>as</dd>

</dl>

5-7

猜你喜欢

转载自blog.csdn.net/qq_21740193/article/details/83475659