使用 Firefox 7 查看网站上 body 元素下的奇怪边距

发布于 2024-12-12 04:07:33 字数 291 浏览 6 评论 0原文

我目前正在开发的网站在 Firefox 7 中遇到问题。边距将 #wrapper 中的渐变从底部向上推,破坏了流程。我已经将 body 和 html 的边距重置为 0,但似乎找不到任何解释这一点的内容。 Firebug 在这个案例中没有告诉我任何有价值的信息。

我的代码在这里,你可以自己看看网站此处

My website that I'm currently working on have a problem in Firefox 7. A margin pushes the gradient in #wrapper up from the bottom and ruins the flow. I've reset the margin to 0 on body and html already and can't seem to find anything to explain this. Firebug tells me nothing of value on this case.

My code is here and you can look at the website yourself here

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

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

发布评论

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

评论(1

停顿的约定 2024-12-19 04:07:33

只需将身体高度设置为 100% 即可。这可能会有所帮助。
并且还添加 background-attachment:fixed; 以避免背景滚动,以防页面滚动。

Just set the body height to 100%. This might help.
And also add background-attachment:fixed; to avoid the background scrolling just in case your page scrolling.

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