
Dialog
- data-role="dialog"を指定する必要があります。
- aリンクで遷移することで表示できます。
<section id="dialog" data-role="dialog" data-close-btn-text="閉じる">
<header data-role="header">
<h3>ヘッダ</h3>
</header>
<article data-role="content">
<p>jQuery Mobileのダイアログ</p>
</article>
</section>
サンプルコード
<!DOCTYPE html>
<html lang="ja">
<head>
<title>Page Title</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.js"></script>
</head>
<body>
<section id="page" data-role="page">
<header data-role="header">
<h3>jQuery Mobile</h3>
</header>
<article data-role="content">
<p><a href="#dialog">ダイアログを開く</a></p>
</article>
<footer data-role="footer">
<h3>Footer</h3>
</footer>
</section>
<!-- リンクによって開かれるダイアログ -->
<section id="dialog" data-role="dialog" data-close-btn-text="閉じる">
<!-- ダイアログ -->
<header data-role="header">
<h3>ヘッダ</h3>
</header>
<article data-role="content">
<p>jQuery Mobileのダイアログ</p>
</article>
</section>
</body>
</html>