Page width exceeds the 100% of the screen width

こ雲淡風輕ζ 提交于 2019-12-11 07:45:33

问题


I have a strange problem, I was designing a page and after I finished, found that there is a horizontal scroll bar in the bottom of the page, I checked the page html but found that there is a close tag for each tag.

Also I tried to check the widths using jQuery and found that $(window).width() = 1351px and $(document).width() = 1480px

any suggestions about what reason for this problem ?


回答1:


Using the your web inspector go through and delete interior elements until the scroll bar goes away. Then fix the width for that element (float:left may work). Probably what is happening is there is an element which is too wide for the page. It is not breaking anything, it is just causing the scroll bar.



来源:https://stackoverflow.com/questions/12009315/page-width-exceeds-the-100-of-the-screen-width

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