jqueryuiモーダルフォームの右上隅にある閉じるボタンの表示に問題があります。私は例として持っていました:http://jqueryui.com/dialog/#modal-form
だから私は作った:http://jsbin.com/atenac/3/edit
[新しいユーザーの作成]をクリックすると、閉じるアイコンが正しく表示されないことがわかります。
chrome(最新)とIE9でテストしました。そして、それは実際のコンテナの右下隅から表示されます。
テーマに問題がありますか、それとも何かが足りませんか?ベースcdnに変更すると機能しますが、他のcssでは機能しません。
コード:
<head>
<!-- base cdn: http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/base/jquery-ui.css-->
<link rel="stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.9.0/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
</head>
<body>
<div id="dialog-form" title="Create new user">
<p class="validateTips">
All form fields are required.</p>
<form>
<fieldset>
<label for="name">
Name</label>
<input type="text" name="name" id="name" class="text ui-widget-content ui-corner-all" />
<label for="email">
Email</label>
<input type="text" name="email" id="email" value="" class="text ui-widget-content ui-corner-all" />
<label for="password">
Password</label>
<input type="password" name="password" id="password" value="" class="text ui-widget-content ui-corner-all" />
</fieldset>
</form>
</div>
<button id="create-user">
Create new user</button>
</body>
<script>
$(function () {
$("#dialog-form").dialog({
autoOpen: false,
height: 300,
width: 350,
modal: true,
buttons: {
"Create an account": function () {
allFields.removeClass("ui-state-error");
$(this).dialog("close");
},
Cancel: function () {
$(this).dialog("close");
}
},
close: function () {
allFields.val("").removeClass("ui-state-error");
}
});
$("#create-user")
.button()
.click(function () {
$("#dialog-form").dialog("open");
});
});
</script>