页面溢出到正文右侧

发布于 2025-01-02 08:59:49 字数 260 浏览 4 评论 0原文

我对此感到非常沮丧,如果有人知道如何快速解决这个问题,那将是一个巨大的帮助......

发生的事情是,我正在一个似乎延伸到右侧的网站上身体。换句话说,向右溢出,从而出现水平滚动条。

你会明白我的意思: 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 技术交流群。

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

发布评论

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

评论(1

梦回旧景 2025-01-09 08:59:49

问题出在右侧边栏中的#fb-root 内。如果删除此元素,布局将正确适合而无需水平滚动。此元素中的子 iframe 的宽度为 575px。您可以通过在 css 中将 iframe 的样式设置为 auto 来将此值更改为:

#fb-root{
    width: auto !important; 
}

此行应放置在 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 child iframe within this element has a width of 575px. You can change this value to auto by setting the style for the iframe in your css as:

#fb-root{
    width: auto !important; 
}

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.

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