突然很长的水平滚动条,尝试了几种解决方案,包括。 “溢出:隐藏”但无济于事
我的 WordPress 博客上突然出现了一个长水平滚动条,它使用 Themeforest 的主题“Wave”,此处。
滚动条以前没有出现过,所以这不是原始主题的问题(我的意思是我不能责怪主题)。 我停用了我认为可能是原因的最新插件,但没有帮助。 我添加了溢出:隐藏;到我的主体类(我没有包装类),但这也禁用了垂直滚动,从而阻止了网站的其余部分的显示。
我检查了宽度属性,它们很好。
我已经验证了 CSS 和 HTML 代码,并修复了其中的小问题。然而问题依然存在!!
我从导航中删除了 3 个页面(看看可能有很多页面是导致问题的原因)。
所有这些,都没有解决问题!
我应该提到的是,导致该问题的小部件是右侧边栏中的 Polldaddy 民意调查。当我把它取下来时,卷轴就消失了。我给 Polldaddy 支持人员发了电子邮件,他们审查了我的主题,甚至将其安装在他们自己的系统上,但没有发现任何与他们的民意调查伪造的内容!
我用原来的主题模板替换了当前的主题文件:php 模板、CSS 文件和 JS 文件(包括 nav.js)。 那并没有改变任何事情。
可能是什么?
先感谢您
I suddenly got this long horizontal scrollbar on my Wordpress blog that uses the theme "Wave" by Themeforest, here.
The scrollbar did not appear before, so it is not an issue with the original theme (I mean I can't blame the theme).
I deactivated latest plugins that I thought could be the reason, but no help.
I added the overflow: hidden; to my body class (I have no wrapper class) but that disabled also the vertical scroll which prevented the rest of the site from being displayed.
I checked the width properties, they are fine.
I have validated both the CSS and the HTML codes, and fixed minor things that were there. Yet the problem is still there !!
I removed 3 pages from the nav (to see perhaps having many of them is what causes the problem).
All that, did not fix the problem !
I should mention that the widget causing it is the Polldaddy poll in the right sidebar. When I remove it, the scroll is gone. I emailed Polldaddy support and they reviewed my theme and even installed it on their own system, but found nothing that counterfeits with their poll !
I replaced the current theme files with the original theme templates: the php templates, CSS files and JS files (including the nav.js).
That didn't change anything.
What could it be?
Thank you in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有两个 CSS 属性的组合导致了导致滚动条的问题:
通过删除两个
left: -...px;
属性,水平滚动条应该消失。You've got a combination of two CSS properties contributing to the problem which is causing the scrollbar:
By removing both
left: -...px;
attributes the horizontal scrollbar should disappear.