head中加入
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
css样式
1 body{
2 min-width: 320px;
3 max-width: 640px;
4 margin: 0 auto;
5 width: 100%;
6 height: auto;
7 min-height: 100%;
8 }
by 小鬼PSer 2017-09-25 12:43:55
![](https://i-blog.csdnimg.cn/blog_migrate/ad4b9f25f4336f91391c6a946bcaeb70.png)