Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jquery ui对话框未显示_Jquery_Jquery Ui_Jquery Ui Dialog - Fatal编程技术网

jquery ui对话框未显示

jquery ui对话框未显示,jquery,jquery-ui,jquery-ui-dialog,Jquery,Jquery Ui,Jquery Ui Dialog,我试图显示一个jquery对话框,其代码如下: var message = "Request processed successfully"; $('<div>'+message+'</div>').dialog({ buttons:{ 'Add More':function(){window.location='index.py?mode=Receivable&cm=Add';}, 'View All':function(){windo


我试图显示一个jquery对话框,其代码如下:

var message = "Request processed successfully";
$('<div>'+message+'</div>').dialog({
   buttons:{
     'Add More':function(){window.location='index.py?mode=Receivable&cm=Add';},
     'View All':function(){window.location='index.py?mode=Receivable&cm=Browse&freshLoad=1';}
   }   
}); 
var message=“请求已成功处理”;
$(''+消息+'')。对话框({
按钮:{
“添加更多”:函数(){window.location='index.py?mode=received&cm=Add';},
“全部查看”:函数(){window.location='index.py?mode=received&cm=Browse&freshLoad=1';}
}   
}); 

文本和按钮(包括“关闭”)都会出现,并且看起来/工作正常,但它们周围没有包含框。我没有收到任何错误(即:它可以找到它正在寻找的所有图像/脚本/等等)。我可以提供更多的细节,但是有没有人遇到过类似的问题?

使用您的代码,我能够让它正常工作


检查您的JS和CSS路径,确保它们不会被404屏蔽。

jQuery UI中缺少格式通常是由于CSS错误或缺失所致。确保页面中包含jQueryUICSS代码和图像,并链接CSS文件。然后它应该可以正常工作。

页面中是否包含并引用了jQuery UI CSS?如果我忘记了CSS,我就会发生这种情况。正确。非常感谢。如果你将此作为答复提交,我将接受。