Avoid the Meta Viewport Tag in Responsive Design - Google Insights Score

不问归期 提交于 2019-12-25 06:58:07

问题


I have designed my site to be responsive without actually using

<meta name="viewport" content="width=device-width, initial-scale=1.0"> 

It looks just the way I want it on mobile. The problem is, when I go to Google Insights, which to test if my site is mobile optimized, it says it is not. When I add the meta tag, it says my site is mobile optimized (even though it looks a lot worse to a human being).

My question is, can get around using the meta viewport tag while still having Google Insights tell me my site is mobile optimized and therefore adding that SEO benefit.


回答1:


You don't want to be setting the viewport width to a specific size. This will make all devices view it as that set size.

Change it to 'device-width' like below and it will size to the devices width.

<meta name="viewport" content="width=device-width,initial-scale=1" />


来源:https://stackoverflow.com/questions/29188428/avoid-the-meta-viewport-tag-in-responsive-design-google-insights-score

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