问题
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