JQuery彈出炫麗對(duì)話框的同時(shí)讓背景變灰色
更新時(shí)間:2014年05月22日 17:11:57 作者:
這篇文章主要介紹JQuery實(shí)現(xiàn)彈出炫麗對(duì)話框的同時(shí)讓背景變灰色效果,需要的朋友可以參考下
這段時(shí)間在做開發(fā)時(shí),用到了JQuery彈出炫麗對(duì)話框,背景變灰色。特地和大家分享分享。
先看效果圖:
代碼如下:
<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,//設(shè)置背景灰的
});
$( "#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ù)制代碼 代碼如下:
<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,//設(shè)置背景灰的
});
$( "#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 Mobile的loading對(duì)話框顯示/隱藏方法分享
- jquery刪除提示框彈出是否刪除對(duì)話框
- jQuery UI庫(kù)中dialog對(duì)話框功能使用全解析
- JQuery實(shí)現(xiàn)自定義對(duì)話框的代碼
- Jquery實(shí)現(xiàn)頁面加載時(shí)彈出對(duì)話框代碼
- 用JQuery 實(shí)現(xiàn)的自定義對(duì)話框
- jquery 模式對(duì)話框終極版實(shí)現(xiàn)代碼
- 6款經(jīng)典實(shí)用的jQuery小插件及源碼(對(duì)話框/提示工具等等)
- 自己使用js/jquery寫的一個(gè)定制對(duì)話框控件
- jQuery Dialog對(duì)話框事件用法實(shí)例分析
- jQuery實(shí)現(xiàn)時(shí)尚漂亮的彈出式對(duì)話框?qū)嵗?/a>
- jQuery實(shí)現(xiàn)定時(shí)隱藏對(duì)話框的方法分析
相關(guān)文章
判斷一個(gè)對(duì)象是否為jquery對(duì)象的方法
在用jquery的each做循環(huán)遍歷的時(shí)候常常會(huì)使用到this,要使用jquery的方法 前提此對(duì)象必須是jquery對(duì)象,下面為大家介紹下jquery對(duì)象的判斷方法2014-03-03
jQuery實(shí)現(xiàn)的仿百度,仿谷歌搜索下拉框效果示例
這篇文章主要介紹了jQuery實(shí)現(xiàn)的仿百度,仿谷歌搜索下拉框效果,結(jié)合實(shí)例形式分析了基于jQuery的鼠標(biāo)事件響應(yīng)與頁面元素動(dòng)態(tài)操作相關(guān)技巧,需要的朋友可以參考下2016-12-12
jQuery選擇器簡(jiǎn)明總結(jié)(含用法實(shí)例,一目了然)
jQuery 選擇器一直是 jquery 最神秘,最強(qiáng)大的一部分,當(dāng)然也是整個(gè) jquery 里面非?;A(chǔ)的2014-04-04
詳解bootstrap用dropdown-menu實(shí)現(xiàn)上下文菜單
這篇文章主要介紹了詳解bootstrap用dropdown-menu實(shí)現(xiàn)上下文菜單的相關(guān)資料,希望通過本文能幫助到大家,需要的朋友可以參考下2017-09-09

