使用 Firefox 7 查看网站上 body 元素下的奇怪边距
我目前正在开发的网站在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需将身体高度设置为 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.