html页面主要内容的背景色消失
这只会让我发疯。我无法意识到问题是什么。请查看 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您查看主页,
标记内的最后一个元素是另一个名为
< 的标记。 /div>
。这可能是一个标签,旨在将 container_8 的高度一直置于所有内容下方。在container_8 div 的末尾添加该标签,看看是否可以解决问题。我刚刚在 Firefox 中为您进行了测试。添加clearfix 有效。因此,您需要将代码更改为“
祝你好运!”之类的内容。
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
Good luck!