回复讨论(解决方案)
把代码发上来。
11111 222 3333333 444444 5555555 666 777777777
相关的css代码:
.list {height:140px;overflow:hidden;}.list li {float:left;width:405px;height:27px;line-height:27px;color:#888;overflow:hidden;background:url(images/arrow.gif) no-repeat 0 6px;padding-left:15px;border-bottom:1px dotted #D8EBF9;}.list li a {color:#005494;padding:0 5px;}
高度问题?
高度问题?
是的。ul的高度超过了.list类定义的140px的高度,删除下面这个样式就行了。
.list { height:140px; overflow:hidden;}
引用 4 楼 的回复:
高度问题?
是的。ul的高度超过了.list类定义的140px的高度,删除下面这个样式就行了。
CSS code
.list {
height:140px;
overflow:hidden;
}
设置为自动高度也行的
对对对,我之前一直没注意CSS里边的值,贴出来代码才发现,谢谢各位,就是高度问题!!
查看更多关于标签<li>为什么不显示_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did113216