我正在使用Jquery来构建移动应用程序,我想显示一个带有大量文本的小弹出框。popup is 30% of the screen
和我想要的文本将是scrollable
带手机小scrollerbar。Jquery带小滚动条的弹出div像移动
这是我的弹出窗口:
<div id="popup" class= "DivWithScroll">
<div class="txt">
<p id="text"> textData...textData...textData</p>
</div>
</div>
试图与这个CSS,但其windows scroller
- 我不用什么
.DivWithScroll{
height:120px;
overflow:scroll;
overflow-x:hidden;
}
使用插件iscroll.js
尝试。看到一些例子,但没有得到我想要的。
myScroll = new iScroll('popup');
有什么想法吗?