ul默认有内边距

来源:互联网 发布:扬凡网络 编辑:程序博客网 时间:2024/05/07 16:35

 

ul是有序标签。默认会有内边距

list-style:none;就是清除有序的样式;

padding;0 去除内边距

 

例子

 

 

#allTabLi ul {    background: #ffffff none repeat scroll 0 0;    left: auto;    line-height: 27px;    list-style: outside none none;    margin-top: 2px;    position: absolute;    text-align: left;    width: 100%;    z-index: 999;}

 

给ul添加 padding:0px的样式

 

#allTabLi ul {    background: #ffffff none repeat scroll 0 0;    left: auto;    line-height: 27px;    list-style: outside none none;    margin-top: 2px;    position: absolute;    text-align: left;    width: 100%;    z-index: 999;padding:0}

 

 

  • 大小: 3.2 KB
  • 大小: 3 KB
  • 查看图片附件
0 0
原创粉丝点击