关于一个弹出层的问题 在A页面点击一个按钮弹出一个层,层之外其他的页面部分全部灰暗...参考支付宝网上支付那种,在选中一个网银点击去网上支付然后就弹出一个层,上面2个按钮一个是已完成充值,一个是充值遇到问题...各位帮帮忙..! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我想要层那种效果...不是showModelDialog()... LZ可以这样实现效果:<div style="background:#000;left:0;top:0; position:absolute;filter:alpha(opacity=50); width:100%;height:100%">11111</div>这个div就是模态,div里面可以写LZ想写入的内容. 其实很简单的:<html><head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Title</title> <style type="text/css"> #mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); display: none; } #box { position: absolute; top: 30%; left: 30%; width: 400px; height: 200px; background: white; } </style> <script src="jquery.js"></script> <script type="text/javascript"> $(function() { $("#show-mask").click(function() { $("#mask").show(); }); $("#close").click(function() { $("#mask").hide(); }); }); </script></head><body> <input type="button" id="show-mask" value="Show Mask"> <div id="mask"> <div id="box"> <input type="button" value="Close" id="close"> </div> </div></body></html> mask的背景不要使用opacity,因为opacity也会把他的子部件全部半透明化,要使用rgba(...) 求助,求助求助? 如何通过request跳转到的页面让它在指定的html主框架显示 jsp提交数据中文乱码 在线等~ 关于一个循环遍历list,怎么得到内容创建select的问题 急!!! struts和servlet (JSP) 代码分析 错误 哪位大哥给个Gmail的邀请,谢谢啦 什么是request,它的机制? 请问各位大虾,jbuilder中自带的tomcat不可用该如何配置 散分了 各位,救我呀!急急急! weblogic线程满问题 file:///与http://问题,等待解决!!
<div style="background:#000;left:0;top:0; position:absolute;filter:alpha(opacity=50); width:100%;height:100%">11111</div>这个div就是模态,div里面可以写LZ想写入的内容.
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Title</title> <style type="text/css">
#mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
display: none;
}
#box {
position: absolute;
top: 30%;
left: 30%;
width: 400px;
height: 200px;
background: white;
}
</style> <script src="jquery.js"></script>
<script type="text/javascript">
$(function() {
$("#show-mask").click(function() {
$("#mask").show();
});
$("#close").click(function() {
$("#mask").hide();
});
});
</script>
</head><body>
<input type="button" id="show-mask" value="Show Mask">
<div id="mask">
<div id="box">
<input type="button" value="Close" id="close">
</div>
</div>
</body>
</html>