国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

JQuery彈出炫麗對話框的同時讓背景變灰色

2019-11-20 15:12:24
字體:
來源:轉載
供稿:網(wǎng)友
這段時間在做開發(fā)時,用到了JQuery彈出炫麗對話框,背景變灰色。特地和大家分享分享。

先看效果圖:
 
代碼如下:
復制代碼 代碼如下:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="js/jquery-1.9.1.js"></script>
<script src="js/jquery-ui.js"></script>
<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>

保證是你要的效果。
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 始兴县| 天峨县| 开封县| 台北市| 阿尔山市| 金沙县| 双桥区| 正安县| 翁牛特旗| 石家庄市| 辽阳市| 呈贡县| 普洱| 类乌齐县| 敖汉旗| 赞皇县| 仁怀市| 西峡县| 丘北县| 惠安县| 都安| 贵州省| 澳门| 介休市| 始兴县| 赣榆县| 仙桃市| 吕梁市| 吉安县| 南部县| 湾仔区| 永州市| 齐齐哈尔市| 晋州市| 富蕴县| 兰州市| 铁岭县| 静乐县| 沈阳市| 南京市| 枞阳县|