C# 带有空白屏幕的Jquery模式对话框
我正在加载Jquery模式弹出窗口,如下所示:-C# 带有空白屏幕的Jquery模式对话框,c#,jquery,asp.net,jquery-ui,modal-dialog,C#,Jquery,Asp.net,Jquery Ui,Modal Dialog,我正在加载Jquery模式弹出窗口,如下所示:- <script type="text/javascript"> $(document).ready(function () { $('.modal_part').fadeIn('slow'); $('#tn_select').load('MyPopup.aspx'); }); </script> .modal_block { background: rgba(0, 0, 0, 0.3);
<script type="text/javascript">
$(document).ready(function () {
$('.modal_part').fadeIn('slow');
$('#tn_select').load('MyPopup.aspx');
});
</script>
.modal_block
{
background: rgba(0, 0, 0, 0.3);
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.modal_part
{
z-index: 100;
display: none;
}
.modal_dialog
{
width: 50%;
position: absolute;
top: 5%;
left: 25%;
padding: 1%;
border-radius: 10px;
border: 0;
background: #fff;
box-shadow: 0 0 5px #000;
}
如何使屏幕的其他部分(背景)变灰,并且用户不能单击除此模式对话框之外的任何内容
感谢您的帮助和时间使用jquery的
使用jquery的
啊,好的,我会检查我的css。有没有办法避免面板顶部的关闭按钮?有一些方法。我们无法在选项中执行。这些都是黑客攻击。在firebug中检查我找到了这个。你不知道我怎么能编辑它,对吗?不希望触摸实际的jquery cssah ok我会检查我的css然后。有没有办法避免面板顶部的关闭按钮?有一些方法。我们无法在选项中执行。这些都是黑客攻击。在firebug中检查我找到了这个。你不知道我怎么能编辑它,对吗?不希望接触实际的jquery css
$(".modal_part").dialog({
modal: true //pass this while initializing dialog
});