asp.net网页问题 怎样才能在弹出一个新窗口的同时其他部分灰色显示啊?谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以用div+css 来实现还要设置z-index extajaxhttp://freexiaoyu.cnblogs.com //EXT windows extajax好家伙,动不动就上框架,系统会不会很庞大啊? 本人没事瞎研究的,仅供参考:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml10-transitional.dtd"><html lang="zh-cn" xml:lang="zh-cn" xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><style type="text/css"> html { overflow-y: scroll; } body { margin: 0; padding: 0; font: 12px/24px Tahoma; } #overlay {display: none; Z-INDEX: 10000; height:100%;BACKGROUND: #000; FILTER: alpha(opacity=50); LEFT: 0px; POSITION: absolute; TOP: 0px; opacity: 0;} .msgWindow {margin: 10px auto; clear: both; position: absolute; top: 100px; z-index: 10002;}</style></head><body> <center> <br /> <input type="button" onclick="Open();" value="OpenWindow"> <script type="text/javascript"> <!-- for (var i = 0; i < 200; i++) { document.write("<br />**********************************************************************"); } //--> </script> </center> <script type="text/javascript"> function Open() { var bb=document.body; document.getElementById("overlay").style.display = 'block'; document.getElementById("overlay").style.width = bb.scrollWidth; document.getElementById("overlay").style.height = bb.scrollHeight; document.getElementById("msgWindow").style.display = ''; document.getElementById("msgWindow").style.left = (bb.offsetWidth - document.getElementById("msgWindow").offsetWidth)/2; document.getElementById("msgWindow").style.top = 100 + bb.scrollTop; } function Close() { document.getElementById("overlay").style.display = 'none'; document.getElementById("msgWindow").style.display = 'none'; } </script> <div id="overlay"></div> <div id="msgWindow" class="msgWindow" style="display: none; background: #88f; border: #fff 1px solid; width: 200px;"> <div id='msgTitle' style="color: #88f; text-align: center; background: #fff;">Message Window</div> <br><br><br><br><br><br><br><br> <center> <input class="BigButton" onclick="Close()" type="button" value="关闭"/> </center> <br> </div></body></html> http://blog.csdn.net/lcindep110可以去看一看。 操作JSON格式数据 存储过程指定循环删除、插入 asp.net 求一个可插入表情的在线编辑器,和QQ的聊天框差不多的 GridView分页问题 在线等 我大三,下半年想找工作,应该注意什么啊 问个域名查询的问题,望知道的人告诉我一下:》 MVC路由的困惑 有谁知道哪里有既可以进行输入又可以从下拉框里选择的ComboBox? OA中最常用的功能是什么?(.NET) gridview HyperLinkField 设置图片查看的链接,数据库获取的图片是地址 向数据库写入数据出错~请人帮忙检查下 对文本框进行模糊查询?
还要设置z-index
ajaxhttp://freexiaoyu.cnblogs.com //EXT windows
ajax好家伙,动不动就上框架,系统会不会很庞大啊?
<html lang="zh-cn" xml:lang="zh-cn" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
html { overflow-y: scroll; }
body { margin: 0; padding: 0; font: 12px/24px Tahoma; }
#overlay {display: none; Z-INDEX: 10000; height:100%;BACKGROUND: #000; FILTER: alpha(opacity=50); LEFT: 0px; POSITION: absolute; TOP: 0px; opacity: 0;}
.msgWindow {margin: 10px auto; clear: both; position: absolute; top: 100px; z-index: 10002;}
</style>
</head>
<body>
<center>
<br />
<input type="button" onclick="Open();" value="OpenWindow">
<script type="text/javascript">
<!--
for (var i = 0; i < 200; i++)
{
document.write("<br />**********************************************************************");
}
//-->
</script>
</center> <script type="text/javascript">
function Open()
{
var bb=document.body;
document.getElementById("overlay").style.display = 'block';
document.getElementById("overlay").style.width = bb.scrollWidth;
document.getElementById("overlay").style.height = bb.scrollHeight;
document.getElementById("msgWindow").style.display = '';
document.getElementById("msgWindow").style.left = (bb.offsetWidth - document.getElementById("msgWindow").offsetWidth)/2;
document.getElementById("msgWindow").style.top = 100 + bb.scrollTop;
}
function Close()
{
document.getElementById("overlay").style.display = 'none';
document.getElementById("msgWindow").style.display = 'none';
}
</script> <div id="overlay"></div>
<div id="msgWindow" class="msgWindow" style="display: none; background: #88f; border: #fff 1px solid; width: 200px;">
<div id='msgTitle' style="color: #88f; text-align: center; background: #fff;">Message Window</div>
<br><br><br><br><br><br><br><br>
<center>
<input class="BigButton" onclick="Close()" type="button" value="关闭"/>
</center>
<br>
</div>
</body>
</html>