Skip to content

Instantly share code, notes, and snippets.

@zhao-ji
Created January 21, 2015 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhao-ji/c34c44f9555e6646875c to your computer and use it in GitHub Desktop.
Save zhao-ji/c34c44f9555e6646875c to your computer and use it in GitHub Desktop.
移动端自适应宽度高度
<!--在html代码的<head>...</head>中嵌入下面代码-->
<meta name="viewport"
content="
height = [pixel_value | device-height] ,
width = [pixel_value | device-width ] ,
initial-scale = 0.5 ,
minimum-scale = float_value ,
maximum-scale = float_value ,
user-scalable = [yes | no] ,
"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment