页面溢出到正文右侧
我对此感到非常沮丧,如果有人知道如何快速解决这个问题,那将是一个巨大的帮助......
发生的事情是,我正在一个似乎延伸到右侧的网站上身体。换句话说,向右溢出,从而出现水平滚动条。
你会明白我的意思: http://www.lahappy.com/blog/
这简直要了我的命!非常感谢有人指出我可能遗漏或做错的事情。
谢谢-
I'm incredibly frustrated by this and it would be a tremendous help if someone out there knows how to quickly figure this out...
What's happening is, I'm working on a site that seems to be extending out to the right of the body. In other words, overflowing to the right such that the horizontal scrollbar appears.
You'll see what I mean:
http://www.lahappy.com/blog/
This is killing me! Would really appreciate someone to call out what I may be missing or doing incorrectly.
Thanks-
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题出在右侧边栏中的
#fb-root
内。如果删除此元素,布局将正确适合而无需水平滚动。此元素中的子iframe
的宽度为575px
。您可以通过在 css 中将 iframe 的样式设置为auto
来将此值更改为:此行应放置在 CSS 行的末尾,以覆盖可能禁用
width 的任何样式:auto 风格。理想情况下,您不必使用
!important
但由于您需要覆盖 FB 定义的样式,所以我会尝试一下。希望这有帮助。
The problem is within
#fb-root
in the right sidebar. If you remove this element, the layout will fit correctly without a horizontal scroll. The childiframe
within this element has a width of575px
. You can change this value toauto
by setting the style for the iframe in your css as:This line should be placed at the end of the CSS line to overwrite any styles which may disable the
width:auto
style. Ideally, you shouldn't have to use!important
but since you need to override a FB defined style, I'd try it out.Hope this helps.