IE 将左侧边栏置于内容下方

发布于 2024-07-09 11:55:15 字数 487 浏览 5 评论 0原文

我不熟悉这个网站,但我正在拼命寻求有关我正在构建的网站的帮助。 如果我没来对地方或者问错了问题,我很抱歉,所以如果我做错了什么,请告诉我!

我建立了一个简单的网站,由四个页面组成(index.html 加上其他三个页面)。 在 FF 中似乎一切正常,但在 IE 中却不然。 我知道有很多类似的问题,但经过几个小时的搜索后我找不到解决方案。 我的左侧有一个侧边栏,在 FF 中出现在适当的位置,但在 IE 中出现在内容下方。 奇怪的是,在第四页上它确实有效,所以我不知道这是我帐户上的 css 还是 html 错误。 目前该网站位于 http://www.kids2move.nl/djctapas

我希望有人能看到我做错了什么以及如何解决它。 我会定期检查此页面,以便在需要时添加其他信息,例如我的 css 文件或 html 代码。 提前致谢!!

I am not familiar with this website but I am desperately seeking help with the website I am building. I'm sorry if I'm not in the right place or asking my question incorrectly, so please tell me if I do something wrong!

I have built a simple website, consisting of four pages (index.html plus three others). In FF everything seems to work fine, but in IE it doesn't. I know there are a lot of similar problems, but after hours of searching I cannot find a solution. I have a sidebar on the left, which in FF appears in place, but in IE comes up below the content. The strange thing is that on the fourth page it does work, so I'm lost as to if it is a css or html error on my account. For the time being the website is to be found at http://www.kids2move.nl/djctapas

I hope there is anyone out there that sees what I have done wrong and how I can fix it. I will check this page regularly so I can add additional information if needed, like my css-file or the htmlcode. Thanks in advance!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

丶情人眼里出诗心の 2024-07-16 11:55:15

为什么不把侧边栏div放到页面div中呢?

Why don't you put the sidebar div into the page div?

七度光 2024-07-16 11:55:15

您目前拥有:

<div id=page>
    <div id=content></div>
</div>
<div id=sidebar></div>

我认为:

<div id=page>
    <div id=sidebar></div>         
    <div id=content></div>
</div>

在布局方面更有意义,并且可能会解决您的问题。 如果没有,请尝试使用position:absolute; CSS 中侧边栏 div 和内容 div 的 margin-left。

You currently have:

<div id=page>
    <div id=content></div>
</div>
<div id=sidebar></div>

I think:

<div id=page>
    <div id=sidebar></div>         
    <div id=content></div>
</div>

would make much more sense layout-wise and may possibly fix your problem. If not, play around with position: absolute; of the sidebar div and margin-left of the content div in the CSS.

岁月蹉跎了容颜 2024-07-16 11:55:15

我同意; 尝试将侧边栏 div 向上移动一个级别。

我认为与照片页面的区别是额外条目 div 的副作用。

如果您获得了 firefox 扩展"Web Developer",您可以使用它显示你的 div 是如何嵌套的。 (信息/显示div顺序)

I agree; try moving the sidebar div up a level.

The difference with the photo page is a side effect of the extra entry div I think.

If you get the firefox extension "Web Developer" you can use that to display how your divs are nested. (information/display div order)

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