防止容器跳跃

发布于 2024-12-12 15:44:51 字数 205 浏览 2 评论 0原文

我脑子里放屁了——真是休息日。我很欣赏这里的住宿。

我有两个容器,每个容器都向左浮动,当窗口大小调整到低于它们的宽度时,第二个容器会跳到第一个容器的下方。我希望它开始溢出。

开发网站 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

就像说晚安 2024-12-19 15:44:51

将它们包装在一个容器 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文