在 Chrome 中禁用滚动
Scroll disabled working in Chrome
html, body {
width: 100%;
max-width: 100%;
overflow-x: hidden;
background: #201E24;
}
.grid-view {
width: 100%;
overflow: hidden;
}
.library .list {
overflow: hidden;
padding-top: 0;
}
尽管我的页面结构和 CSS 非常简单,但我就是找不到 Chrome 和 Android 上的滚动条。一直在摸不着头脑。
既然您已经删除了 media="all" body, .ionic-body
中的 overflow:hidden
,请尝试以下操作:
- 将
height:100%
添加到 html,body
- 从
content has-header grid-view
的内联样式中删除 height: 1052px;
希望一切顺利。
我不确定我是否遇到了你的问题,但试试这个。
.library .bar-clear{
background:#35323A;
position:relative;
}
.has-header{
top:0px;
}
html, body {
width: 100%;
max-width: 100%;
overflow-x: hidden;
background: #201E24;
}
.grid-view {
width: 100%;
overflow: hidden;
}
.library .list {
overflow: hidden;
padding-top: 0;
}
尽管我的页面结构和 CSS 非常简单,但我就是找不到 Chrome 和 Android 上的滚动条。一直在摸不着头脑。
既然您已经删除了 media="all" body, .ionic-body
中的 overflow:hidden
,请尝试以下操作:
- 将
height:100%
添加到html,body
- 从
content has-header grid-view
的内联样式中删除
height: 1052px;
希望一切顺利。
我不确定我是否遇到了你的问题,但试试这个。
.library .bar-clear{
background:#35323A;
position:relative;
}
.has-header{
top:0px;
}