responsive design for website not scrolling in Mobile phones

霸气de小男生 提交于 2021-02-08 05:57:17

问题


I am designing a responsive website. It works fine in desktop but when i test in Mobile phones ,I am not able to scroll the page. So i can see only content which fit in the device height. Note: I have even included meta name="viewport" content="width=device-width",initial-scale-1.0" Please Help me :-)


回答1:


Its been a year since you asked this question, but my answer might help someone.

Make sure you haven't use body{ overflow: hidden}, because that will hide content which is not visible in initial screen.

EDIT: If you want to hide horizontal scroll which is coming because of unknown reason, use body{overflow-x: hidden}. However, I recommend you to find reason behind horizontal scroll.



来源:https://stackoverflow.com/questions/14775101/responsive-design-for-website-not-scrolling-in-mobile-phones

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