<ul type="square">    <!--type有三种:circle空心圆,disc实心圆,square方块-->
    <li>这是内容</li>
    <li>这是内容</li>
    <li>这是内容</li>
</ul>

这是无序列表,html中列表type类型控制内容前方的小图标

<ol type="1" reversed="reversed">  <!--1数字,a小写英文,A大写英文,I罗马数字大写,i罗马数字小写,reversed倒数排序-->
     <li>这是内容</li>
     <li>这是内容</li>
     <li>这是内容</li>
</ol>

这是有序列表,html中列表同样type控制内容前方图标,不过这个是数字英文,而且可以倒数。同时,有序列表也可以使用无序列表的图标

<ol style="list-style-image: url(图片名.后缀名)"> <!--把图片当样式-->
    <li>水水水水</li>
    <li>水水水水</li>
    <li>水水水水</li>
</ol>

如果都不合心意,可以用图片代替内容前面的图标

相关文章:

  • 2021-12-07
  • 2022-02-01
  • 2021-12-02
猜你喜欢
  • 2021-11-07
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-12-27
  • 2021-12-12
相关资源
相似解决方案