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

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;
}

上一篇:深入体验bash on windows,在windows上搭建原生的linux开发环境,酷!


下一篇:LeetCode14 Longest Common Prefix