码迷,mamicode.com
首页 > 移动开发 > 详细

移动端禁止上下滑动出现空白

时间:2018-09-21 19:03:13      阅读:458      评论:0      收藏:0      [点我收藏+]

标签:font   body   width   style   position   移动端   fixed   滑动   100%   

你想象不到有多简单

body,html{

  position:fixed;

  top:0;

  left:0;

  width:100%;

  height:100%;

}

移动端禁止上下滑动出现空白

标签:font   body   width   style   position   移动端   fixed   滑动   100%   

原文地址:https://www.cnblogs.com/chefweb/p/9687960.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!