简体   繁体   English

当使用Firefox 7进行浏览时,网站上正文下方的页边距很奇怪

[英]Weird margin under body-element on website when viewed with Firefox 7

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. 我目前正在使用的网站在Firefox 7中出现问题。边距使#wrapper中的渐变从底部向上推,破坏了流量。 I've reset the margin to 0 on body and html already and can't seem to find anything to explain this. 我已经将body和html的边距重置为0了,似乎找不到任何能解释这一点的东西。 Firebug tells me nothing of value on this case. Firebug告诉我在这种情况下没有任何价值。

My code is here and you can look at the website yourself here 我的代码在这里 ,您可以在这里自己查看网站

Just set the body height to 100%. 只需将身体高度设置为100%。 This might help. 这可能会有所帮助。 And also add background-attachment:fixed; 并且还添加了background-attachment:fixed; to avoid the background scrolling just in case your page scrolling. 以避免背景滚动,以防万一您的页面滚动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM