【发布时间】:2023-04-10 23:41:02
【问题描述】:
我刚刚开始探索 J query mobile。我尝试使用以下代码打开一个对话框。
<a data-role="button" href="test_my_dialog.php" data-icon="plus" data-iconpos="left" data-mini="true" id="test_dialog" data-rel="dialog">Test Dialog </a>
对话框打开但没有关闭按钮和标题,因为它在以下链接Dialogs的演示中显示
这里有什么我遗漏的吗?
编辑: test_my_dialog.php 的标记
<div data-role="page">
<div data-role="content">
<div data-role="fieldcontain">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend>
Add As
</legend>
<input id="radio1" name="RC_type" value="radio1" type="radio">
<label for="radio1">
Team Driver
</label>
<input id="radio2" name="RC_type" value="radio2" type="radio">
<label for="radio2">
Team Member (Driver2)
</label>
</fieldset>
</div>
</div>
</div>
【问题讨论】:
-
发布 test_my_dialog.php html 标记。
-
您是否为关闭按钮上传了图片?您可以使用 firebug 之类的工具检查元素是否存在。
标签: jquery-mobile