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}
0 0
- ul默认有内边距
- ul ol dl 取消默认缩进
- ul标签浏览器默认padding值
- ul ol dl 取消默认缩进
- CSS:<ul>的左边为什么有40px的默认距离呢?
- ul左侧空白是因为没有清除默认的margin padding
- UL格式
- ul电线
- UL 排版
- ul li
- <ol><ul>
- ul实例
- 点滴 UL
- div+ul
- ul css
- ul ol
- UL居中
- ul,ol
- 在Android中使用的省,市,区三级联动,含数据
- html5 table 圆角
- 括号配对问题
- js 模拟回调函数
- 各国语言简写代码
- ul默认有内边距
- HDU1299-Diophantus of Alexandria
- MQ的作用
- CSS右边固定左边自适应布局
- 各大搜索引擎智能提示API (JSONP跨域实现自动补全搜索建议)
- 美大选启用VR,首辩 希普「方寸必争」
- centos7安装ffmpeg教程
- Array.prototype.slice.call(arguments)
- 深入理解javascript(11):执行上下文栈