我有一个移动网站,但它加载时缩小了。我怎样才能解决这个问题?

I have a mobile website but it loads zoomed out. How can I fix this?

我有一个移动网站,但它加载时缩小了。我该如何解决这个问题。

您可能需要设置 视口

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

http://davidbcalhoun.com/2010/viewport-metatag/

您应该插入视口元标记。

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

This means that the browser will (probably) render the width of the page at the width of its own screen. So if that screen is 320px wide, the browser window will be 320px wide, rather than way zoomed out and showing 960px (or whatever that device does by default, in lieu of a responsive meta tag).

参考:Css-Tricks - Responsive Meta Tag - MDN - Using the viewport meta tag to control layout on mobile browsers