html页面主要内容的背景色消失

发布于 2024-08-28 06:04:01 字数 176 浏览 1 评论 0原文

这只会让我发疯。我无法意识到问题是什么。请查看 Pixeli.ca/glass。有一个主页看起来不错——主要内容为白色背景,看起来不错。但所有其他页面都没有白色背景,因此它们看起来不正常。所有页面都具有相同的样式表和来自 960.gs 框架的相同布局元素。这只是某种神秘的存在。我需要的是使所有页面看起来像主页 - 具有白色背景。 谢谢。

It just makes me go mad. I can't realize what the problem is. Please have a look at the pixeli.ca/glass. There is a home page that looks good - white background of the main content and looks good. But all the other pages don't have white background so they look not the way they should look. All the pages have the same style sheet and the same layout elements taken from 960.gs framework. It's just some kind of mystery there. What I need is to make all page look like the home page - having white background.
Thanks.

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

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

发布评论

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

评论(1

乜一 2024-09-04 06:04:01

如果您查看主页,

标记内的最后一个元素是另一个名为

< 的标记。 /div>。这可能是一个标签,旨在将 container_8 的高度一直置于所有内容下方。在container_8 div 的末尾添加该标签,看看是否可以解决问题。

我刚刚在 Firefox 中为您进行了测试。添加clearfix 有效。因此,您需要将代码更改为“

<div class="container_8">
    *lots of content here*
    <div class="clearfix"></div>
</div>

祝你好运!”之类的内容。

If you look on the home page, the last element inside the <div class="container_8"> tag is another tag called <div class="clearfix"></div>. This is probably a tag designed to bring the height of the container_8 all the way below all the contents. Add that tag at the end of the container_8 div and see if that fixes it.

I just tested it for you in Firefox. Adding the clearfix worked. So you need to change your code to something like

<div class="container_8">
    *lots of content here*
    <div class="clearfix"></div>
</div>

Good luck!

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