Viewport width issue on responsive mobile template

十年热恋 提交于 2019-12-13 22:23:36

问题


I am trying to convert a poorly designed template to a responsive design, found here:http://www.crhinc.com/about-mobile.html

Im having an issue where on desktop browser sized to mobile the template looks and works great, but on android and iphone, the page is larger than the viewport. i know i must be missing something, but as you can see, i have outlined the elements just to get try and see if i can find out whats in there that is stretching it outside the viewport and cause mobile phones to scroll from side to side but not desktop browsers.

i set the body up for 300px width just to see if i could find the rogue element, but put it back because it did not work. there are a few tables in the content, but all set to 100% width.

for some reason, it almost looks like the width in the desktop and on mobiles or not actually the same.

Jeff


回答1:


Do you actually think it is the viewport? Do you have the viewport set with the right content?

Maybe this link could help.

Or is it just the CSS? In that case I would recommand you searching for width and such. Trying to find big numbers..

Setting a specified width should be for specified screen sizes. Otherwise make it max-width.



来源:https://stackoverflow.com/questions/32567625/viewport-width-issue-on-responsive-mobile-template

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