Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用“溢出:自动;” 它正在创建一个水平滚动条!
看看http://slico.ca/design.php
请帮助,这正在杀死我。我正在尝试制作一个随着内容/子类别 div 被填充或清空而降低或升高的页脚。
我的问题是我做错了什么?如果我没有使用正确的东西,请指定。
利用 box-sizing CSS 属性,你不需要所有这些样式。我没有更正您的 CSS,但这是一个固定版本
box-sizing:border-box;
这将有助于将边框视为宽度的一部分
http://jsfiddle.net/uBE5Y/