如何修复将位于 jquery ui 对话框顶部的选择器“div”,并且在它之外可以这样做吗?什么是最好的解决方案?
这是我想看到的: 1 http://img6.imageshack.us/img6/4866/74030613.png
html:
<div id="settingsDialogWindow" title="Settings" style="display:none;">
<label for="color">Color:</label>
<input type="text" id="color" name="color" value="#123456" maxlength="7" />
<div id="picker" style="position: absolute;
left: 50px;
border: 1px solid #aaa;
background-color: #fff;
-webkit-border-radius: 4px !important;
border-radius: 4px !important;
z-index: 99999999;"></div>
</div>
js:
$(function () {
$("#settingsDialogWindow").dialog({
modal: true,
draggable: true,
height: 'auto',
width: 300,
minWidth: 300,
minHeight: 60,
resizable: false,
position: { at: "center middle" }
});
$('#picker').farbtastic('#color');
$("#color").focus(function () {
$("#picker").show();
});
$("#color").focusout(function () {
$("#picker").hide();
});
});