简体   繁体   English

使用Firefox时右边空白

[英]White space in right margin when using firefox

Have some unwanted white space in the right margin when viewing the site with firefox. 使用Firefox浏览网站时,在右边距留有一些多余的空白。 Problem doesn't occur with other browsers. 其他浏览器不会出现问题。

I've tried putting a 2px border around all elements to see if there's a hidden div, but there doesn't seem to be. 我尝试在所有元素周围放置2px的边框,以查看是否存在隐藏的div,但似乎没有。

The link to the page is . 该页面的链接为。 . .

http://msmdesignz-testing.info/wp/ http://msmdesignz-testing.info/wp/

Thanks. 谢谢。

There's an Facebook iframe that's being injected into the <div id="fb-root"></div> in your page. 在您页面的<div id="fb-root"></div>中注入了一个Facebook iframe。 That iframe (that's identified as iframe id="fabb7e18d7b7ca" class="FB_UI_Hidden") has an inline style width="575px" that is causing the extra white space on the right side of your page in FF. 该iframe(标识为iframe id =“ fabb7e18d7b7ca” class =“ FB_UI_Hidden”)具有内联样式width =“ 575px”,这会导致FF页面右侧的多余空白。

You'll need to find a way to eliminate that width definition. 您需要找到一种消除宽度定义的方法。 Adding a style cascade somewhere in your css like this: .FB_UI_Hidden { width: 100px !important; } 在CSS的某处添加样式层叠,如下所示: .FB_UI_Hidden { width: 100px !important; } .FB_UI_Hidden { width: 100px !important; } (or with an appropriate width) would resolve your problem. .FB_UI_Hidden { width: 100px !important; } (或适当的宽度)可以解决您的问题。

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

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