Viewport mobile terminal webpage development meta

These days, micro message in the public platform, to write to a few pages relates to, but when I found when testing the imagination and not the same, so to find a few pages look, they found the page head   meta  viewport tags, so find the information on the web, found that follow the same pattern, but some layout very ugly, so I copied his re layout under,

Explanation of parameters


<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />

Width: control the size of the viewport, You can specify a value, As of 600, Or special value, Such as device-width for the device width (unit of China "for the 100% pixels CSS height: width) and corresponding, Specifies the height of initial-scale: the initial scaling, The page is first loaded scaling maximum-scale: maximum ratio allows users to zoom into the, Range from 0 to 10.0minimum-scale: allows users to zoom into the smallest proportion, Range from 0 to 10.0user-scalable: whether the user can manually scale, Values can be: yes/true allows users to zoom; no/false does not allow the user to zoom

Posted by Cassandra at November 17, 2013 - 5:28 PM