2012-11-02 47 views
0

我在看MobiScroll的演示,並選擇下列選項:Mobiscroll演示

Demo Page: Demo 
Demo: Time 
Display: Modal 
Mode: Scroller 

演示示例顯示了生成的HTML我應該使用:當我使用這個

<input id="i" name="i" /> 


<a href="#" id="show" class="btn">Show</a> 
<a href="#" id="clear" class="btn">Clear</a> 

HTML,顯示和清除按鈕顯示在頁面上,當我點擊輸入框時,Mobiscroll以內聯方式顯示。在演示中,這些按鈕與Mobiscroll一起出現在模態對話框中。我是否需要將HTML封裝在帶有特殊標籤的div中?

謝謝!

回答

1

問題是需要jQuery Mobile js + css文件來獲取模態彈出窗口。網站上的方向不明確!我添加了以下和presto!

<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script> 
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />