列表
1. 无序列表 ul
第一内部必须有子标签 <li></li>
第二 ul天生自带内外边距 还有一个 p 标签
并集选择器
*选择器有好处也有弊端
好处就是省事,弊端,就是因为太省事了,加大了浏览器的负荷。
解决办法 按需选择。
List-style 这是样式属性除去列表前的符号
List-style的属性值 circle(空心圆) disc(实心圆)square(正方形)none(空)
ol 有序列表
1. 内部必须有子标签<li>
2. 天生自带内外边距
Ol和ul不同之处就在前面符号的区别。
用标签属性type修改
3.自定义列表
Dl 自定义列表 dt 是小标题 dd内容
列表能做什么?
做二级菜单做导航
备注