【发布时间】:2015-09-02 11:55:50
【问题描述】:
我的帐户页面中有一个 jquery 对话框。当对话框出现时,它与页面内容重叠。请在此处查看图片。
http://s7.postimg.org/dxsg3u417/Capture.png。
对话框的代码是:
$('<div id="ratingloaderDiv"></div>').load("ratingDialog.jsp?id=" + id, function () {
rateDialog = $(this).dialog({
autoOpen: true,
minHeight: 275,
width: 400,
height: 350,
modal: true,
open: function (event, ui) {
var rating = 0;
$('.rateCls' + id).rating({
callback: function (value, link) {
rating = value;
}
});
//more code goes.
谁能建议如何避免与页面内容重叠?
【问题讨论】:
-
为对话框设置 z-index。
标签: jquery html jquery-dialog