任何人都可以帮我找出我做错了什么。为什么弹出模式不在中心位置?我尝试使用
手动设置位置职位:{my:“center”,at:“center”},
或位置:{my:“center”,at:“center”,of:window},
似乎没有任何效果:(。
R效率:
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.11.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
代码:
$("#btnPopup").click(function () {
$("#buttonDialog").dialog({
title: "Add a Manufacturer",
modal: true,
buttons: {
"Add": addUser,
Cancel: function () {
$(this).dialog('close');
}
}
});
return false;
});
答案 0 :(得分:0)
我实际上已经解决了。如果其他人得到类似的问题,请确保你在母版页中查看了所有的css,因为css会搞乱你的jQuery。