html中ul和li标签的用法

普通的显示数据的时候,ul就是项目列表,li就是列表项。可以用来显示数据。

如果用于DIV+CSS布局的话,ul+li可以替换表格的作用,具体的设置,如果宽度高度、行间距、背景边框等需要配合CSS一起设置。

一.做导航,居中

做导航

二.少量数据表格

默认是竖排,并且带圆点

  • hello
  • hello
  • hello
  • hello

三.少量数据表格

  • 去掉圆点
  • hello
  • hello
  • hello

四.少量数据表格

无标题文档

  • hello
  • hello
  • hello
  • hello
  • hello
  • hello
  • hello
  • hello
  • hello

五.少量数据表格

无标题文档

  • hello
  • hello
  • hello
  • hello
  • hello