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

关于ios手机游览器针对overflow:hidden设置无效的解决办法

时间:2017-06-10 16:58:22      阅读:2253      评论:0      收藏:0      [点我收藏+]

标签:sep   drawer   nbsp   hid   creating   osi   his   ati   width   

Ordinarily, overflow: hidden; on the body tag is sufficient to prevent scrolling a web page, if for instance you’re creating a drawer to hold content that will scroll separately. However, this doesn’t work in iOS6. The best I’ve come up with so far is to set position: fixed:

body.lock-position {
height: 100%;
overflow: hidden;
width: 100%;
position: fixed;
}

关于ios手机游览器针对overflow:hidden设置无效的解决办法

标签:sep   drawer   nbsp   hid   creating   osi   his   ati   width   

原文地址:http://www.cnblogs.com/bluesky1024/p/6979003.html

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