可滚动的div不工作在Android模拟器,iphone模拟器 [英] scrollable div is not working in android emulator,iphone simulator
本文介绍了可滚动的div不工作在Android模拟器,iphone模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用phonegap。
我想保留一个固定的页眉和页脚,我想滚动它们之间的内容。对于我使用的div与:
I am using phonegap.
I want to keep a fixed header and footer,and i want to scroll the content in between them. For that i used div with:
div
{
width: 249px;
height: 299px;
background-color:Gray;
overflow-y: auto;
}
但是div不滚动。
但是在浏览器中是很好的。
style.
But the div is not scrolling.
But in browser it is fine.
推荐答案
如果添加了此属性,则Div滚动在iOS中有效:
Div scrolling does work in iOS if this property is added:
-webkit溢出滚动:touch
-webkit-overflow-scrolling: touch
这篇关于可滚动的div不工作在Android模拟器,iphone模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文