日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

JqueryMobile学习之二---对话框

發布時間:2023/12/18 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 JqueryMobile学习之二---对话框 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

對話框

通過在鏈接中添加data-rel=”dialog”的屬性,可以使鏈接頁面的顯示方式變為對話框。給顯示的對話框加入切換的效果也是一個不錯的選擇

例如我們將about的鏈接變成一個對話框并加入相應的切換效果。代碼如下

<p><a href="#about" data-rel="dialog" data-transition="slideup">About this app</a></p>???

注意:目前的測試版本存在問題,當在一個頁面中寫多個”page”時在以dialog的方式打開一個頁面時,不會出現對話框效果

View Code 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title></title> 5 <link href="Scripts/jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.css" rel="stylesheet" type="text/css" /> 6 <script src="Scripts/jquery-1.6.4.js" type="text/javascript"></script> 7 <script src="Scripts/jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.js" type="text/javascript"></script> 8 </head> 9 <body> 10 11 <div data-role="page" id="home"> 12 13 <div data-role="header"> 14 <h1>Home</h1> 15 </div> 16 17 <div data-role="content"> 18 <p><a href="#about" data-rel="dialog" data-transition="slideup">About this APP</a></p> 19 </div> 20 21 </div> 22 23 <div data-role="page" id="about"> 24 25 <div data-role="header"> 26 <h1>About This App</h1> 27 </div> 28 29 <div data-role="content"> 30 <p>This app rocks! <a href="#home">Go home</a></p> 31 </div> 32 33 </div> 34 </body> 35 </html>

?

?

轉載于:https://www.cnblogs.com/caishuhua226/archive/2012/04/25/2469962.html

總結

以上是生活随笔為你收集整理的JqueryMobile学习之二---对话框的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。