JQuery彈出炫麗對話框的同時讓背景變灰色
更新時間:2014年05月22日 17:11:57 作者:
這篇文章主要介紹JQuery實現(xiàn)彈出炫麗對話框的同時讓背景變灰色效果,需要的朋友可以參考下
這段時間在做開發(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>
保證是你要的效果。
先看效果圖:
代碼如下:
復制代碼 代碼如下:
<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>
保證是你要的效果。
您可能感興趣的文章:
- jQuery Mobile的loading對話框顯示/隱藏方法分享
- jquery刪除提示框彈出是否刪除對話框
- jQuery UI庫中dialog對話框功能使用全解析
- JQuery實現(xiàn)自定義對話框的代碼
- Jquery實現(xiàn)頁面加載時彈出對話框代碼
- 用JQuery 實現(xiàn)的自定義對話框
- jquery 模式對話框終極版實現(xiàn)代碼
- 6款經(jīng)典實用的jQuery小插件及源碼(對話框/提示工具等等)
- 自己使用js/jquery寫的一個定制對話框控件
- jQuery Dialog對話框事件用法實例分析
- jQuery實現(xiàn)時尚漂亮的彈出式對話框?qū)嵗?/a>
- jQuery實現(xiàn)定時隱藏對話框的方法分析
相關文章
jQuery實現(xiàn)的仿百度,仿谷歌搜索下拉框效果示例
這篇文章主要介紹了jQuery實現(xiàn)的仿百度,仿谷歌搜索下拉框效果,結合實例形式分析了基于jQuery的鼠標事件響應與頁面元素動態(tài)操作相關技巧,需要的朋友可以參考下2016-12-12
詳解bootstrap用dropdown-menu實現(xiàn)上下文菜單
這篇文章主要介紹了詳解bootstrap用dropdown-menu實現(xiàn)上下文菜單的相關資料,希望通過本文能幫助到大家,需要的朋友可以參考下2017-09-09

