父容器定宽,ul不定宽,li不折行
来源:互联网 发布:通用汽车dps编程软件 编辑:程序博客网 时间:2024/05/16 17:46
做水平滚动轮播时的思考。
ul宽度不会被撑开,但scrollwidth会撑开。
<html><head> <title>test-li不折行</title> <meta charset="gbk" /> <style type="text/css"> ul{ white-space: nowrap; padding: 0; margin: 0; overflow: auto;} li{ width: 900px; height: 200px; background-color: green; display: inline-block;} </style></head><body> <div style="width: 900px; height: 200px; margin: 0 auto; overflow: hidden;"> <ul> <li></li> <li></li> <li></li> <li></li> </ul> </div></body></html>
<script type="text/javascript"><!--google_ad_client = "ca-pub-1944176156128447";/* cnblogs 首页横幅 */google_ad_slot = "5419468456";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- 父容器定宽,ul不定宽,li不折行
- ul li
- 子容器居中, 父子容器宽高不定
- div+ul+li+(ul+li)布局
- <ol></ol><ul></ul><li></li>
- css ul li 换行
- ul li CSS 样式
- css ul li问题
- ul li a classname
- ul li 高度自适应
- ul li 更改样式
- ul li样式
- ul li样式总结
- ul和li应用
- ul li横排
- 关于ul ol li
- css中的ul li ul li ul li ul li 实现四级菜单
- ul li 横排 样式
- 数据库只能用机器名连接,不能用ip地址连接
- 学习iPhone开发中 sqlite3的使用
- javascript关联数组
- 遗传算法解决TSP问题
- Bootstrap js插件使用大全
- 父容器定宽,ul不定宽,li不折行
- hdu 1596 find the safest road
- 每天100行代码20130513
- C++计算文件的行数 不考虑空行
- 【设计模式】12. 代理模式
- TC SRM580 DIV2
- 第6章 变换编码
- colors.xml
- oracle的密码不记的,该咋办