我有下面的代码,或者你可以在 jsfiddle ( http://jsfiddle.net/HzGDm/ ) 上查看我不确定我做错了什么。如果单击链接#1,然后单击#2 和#3,则链接#2 和#3 都变成对话框。
<div data-role="page" id="page1">
<div data-role="header"><h1>Page 1</h1></div>
<div data-role="content">
<h2>
<a href="#page2" data-rel="dialog" >1. Click this link first: Display Dialog</a></h2>
<h2>Then let's try some transitions!</h2>
<p>2. <a href="#page2" data-transition="fade">Fade to second page</a></p>
<p>3. <a href="#page2" data-transition="flip">Flip to second page</a></p>
</div>
<div data-role="footer"><h1>footer</h1></div>
</div>
<div id="page2" data-role="page">
<div data-role="header"><h1>page 2</h1></div>
<div data-role="content">
<p>This is page 2</p>
<p><a href="#page1">Go back to first page</a></p>
</div>
<div data-role="footer">Page Transitions</div>
</div>