Two vertical scrollbars in Firefox when using overflow-x:hidden

随声附和 提交于 2019-12-05 07:24:00

Just had a similar issue come up; my solution was to simply add:

html, body {height:100%;}

And that solved it. Just wanted to post it here 'cause this kept popping up in the search results.

OK, I sorted it out. Against my better judgement, I just copied and pasted a clearfix hack from any old site on the net. After many hours troubleshooting, Ive found that it was all down to clearfix that the fullwidth bars weren't working as expected. I narrowed it down to the css content tag of the clearfix hack. For some reason it had had a '.' inserted as the content. I removed this and then added

* html .clearfix { height: 1%; }

onto the end of the clearfix css block and it worked. No more horizontal scrolling, no more x2 vertical scrollbars in Firefox.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!