防止容器跳跃
我脑子里放屁了——真是休息日。我很欣赏这里的住宿。
我有两个容器,每个容器都向左浮动,当窗口大小调整到低于它们的宽度时,第二个容器会跳到第一个容器的下方。我希望它开始溢出。
开发网站 http://dev3.dhut.ch/
说真的,对不起,谢谢。
I'm having a serious brain fart- really an off day. I appreciate the accommodation.
I have two containers, each floated left, and when the window is resized below the width of them, the second container jumps below the first. I'd like it to start overflowing.
dev site at http://dev3.dhut.ch/
seriously, I'm sorry, thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将它们包装在一个容器 div 中,其宽度(或最小宽度)等于两者组合的宽度(包括任何边距或填充)。
编辑:从您的示例来看,您似乎只需将
放在
#main
内部。wrap them both in a container div with a width (or min-width) that equals the width of both combined (including any margins or padding).
EDIT: By the look of your example it would appear you just need to put
<header>
inside of#main
.