1
我使用的是jquery mobile 1.1.1和jquery core 1.7.1。问题是,当我尝试打开一个对话框它does not工作。相同的代码正在为jquery mobile 1.0.1工作。我试过使用jQuery核心1.8.0,但这并没有工作。谁能帮忙? 。这里是的jsfiddle链接:http://jsfiddle.net/zteV3/18/jquery mobile中没有显示对话框1.1.1
我使用的是jquery mobile 1.1.1和jquery core 1.7.1。问题是,当我尝试打开一个对话框它does not工作。相同的代码正在为jquery mobile 1.0.1工作。我试过使用jQuery核心1.8.0,但这并没有工作。谁能帮忙? 。这里是的jsfiddle链接:http://jsfiddle.net/zteV3/18/jquery mobile中没有显示对话框1.1.1
尝试以下操作:
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile.structure-1.1.1.min.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
<div id="home" data-role="page">
<div data-role="content">
<a href="#payments" data-rel="dialog" data-role="button" data-transition="pop">Open dialog</a>
</div>
</div>
<div id="payments" data-role="page" data-url="payments">
<div data-role="content">
<p>Some Content Here</p>
<a href="#home" data-role="button">Close</a>
</div>
</div>
你的CSS引用(在<link>
标签),其中不正确定义。
我在jsfiddle上测试了它,现在工作正常;)
您使用的是从1.0版本的CSS?你确定它在此期间没有改变? –