网络编程 
首页 > 网络编程 > 浏览文章

JQuery弹出炫丽对话框的同时让背景变灰色

(编辑:jimmy 日期: 2025/5/15 浏览:3 次 )
这段时间在做开发时,用到了JQuery弹出炫丽对话框,背景变灰色。特地和大家分享分享。

先看效果图:
JQuery弹出炫丽对话框的同时让背景变灰色 
代码如下:
复制代码 代码如下:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/UploadFiles/2021-04-02/jquery-1.9.1.js"><script src="js/jquery-ui.js"><link rel="stylesheet" type="text/css" href="css/jquery-ui.css">
<title>JQuery弹出框,背景变灰色</title>
<script type="text/javascript">
$(document).ready(function(e) {
$( "#reviews" ).bind('click',function(event) {
$( "#checkandPass" ).dialog({
autoOpen: true,
width: 765 ,
show: "blind",
hide: "explode",
modal: true,//设置背景灰的
});
$( "#checkandPass" ).dialog( "open" );
return true;
});
});
</script>
</head>

<body>
<div>
<input type="button"id="reviews"value="Click me"/>
</div>
<div id="checkandPass" title="审核意见" style="display: none;">
<form id="passideas_true" method="post" enctype="multipart/form-data" >
<div>
<textarea style="width:100%;height:90%;min-height: 100px;"></textarea>
</div>
<div style="margin-top: 20px;text-align: center;">
<button style="height:30px;width:80px;" type="button" id="upfpass_true" >确定</button>
<button style="height:30px;width:80px;" id="sb">取消</button>
</div>
</form>
</div>
</body>
</html>

保证是你要的效果。
上一篇:jquery动态添加元素事件失效问题解决方法
下一篇:jQuery ui 利用 datepicker插件实现开始日期(minDate)和结束日期(maxDate)
一句话新闻
高通与谷歌联手!首款骁龙PC优化Chrome浏览器发布
高通和谷歌日前宣布,推出首次面向搭载骁龙的Windows PC的优化版Chrome浏览器。
在对骁龙X Elite参考设计的初步测试中,全新的Chrome浏览器在Speedometer 2.1基准测试中实现了显著的性能提升。
预计在2024年年中之前,搭载骁龙X Elite计算平台的PC将面世。该浏览器的提前问世,有助于骁龙PC问世就获得满血表现。
谷歌高级副总裁Hiroshi Lockheimer表示,此次与高通的合作将有助于确保Chrome用户在当前ARM兼容的PC上获得最佳的浏览体验。
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网 网站地图 SiteMap