怎样设置透明遮盖层下面的东西不能点击? 本帖最后由 mingfish2 于 2012-07-27 12:12:44 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <body> <style type="text/css"> *{padding:0;margin:0;} body{padding:20px;} .overlay{ position:absolute; width:500px; height:500px; border:1px solid red; z-index:100; background-color:#999999; } </style> <div class="overlay" style="filter:alpha(opacity=0)"></div> <a href="javascript:;" onclick="alert('hello')">hello</a></body>这样试试 额 那样改了火狐又不起作用了style="opacity:0.0;filter:alpha(opacity=0);"改成这样看看行不行 .g-cv{ maring:0; padding:0; position:absolute; left:0; top:0; width:100%; height:100%; background:#000; filter:alpha(opacity=30); opacity:0.3;} <html><head><meta http-equiv="Content-type" content="text/html;charset=utf8" /> <style> *{padding:0;margin:0;} body{padding:20px;} .overlay{position:absolute;width:500px;height:500px;border:1px solid red;z-index:100;display:none;} </style></head><body> <div class="overlay" id="over"></div> <a href="javascript:;" onclick="change()">hello</a> <script> function change() { document.getElementById('over').style.display="block"; } </script></body></html> 关于Javasrcirpt处理byte[]问题 ie浏览器不兼容 Safari 5.1下onunload事件不响应 js版fck网络编辑器 浏览服务器时源文件中的中文图片名的路径为乱码 正则表达式Match方法 请问这段HTML代码为什么不能执行显示? js中怎么控制某个域不能修改? 如何实现javascript获取某行?并删除它? 求救!!! JS两个页面之间实现淡入淡出效果 js中键盘的相关事件问题 菜鸟请教各位大侠,JQuery做的树形菜单为什么不成功?
<style type="text/css">
*{padding:0;margin:0;}
body{padding:20px;}
.overlay{
position:absolute;
width:500px;
height:500px;
border:1px solid red;
z-index:100;
background-color:#999999;
}
</style>
<div class="overlay" style="filter:alpha(opacity=0)"></div>
<a href="javascript:;" onclick="alert('hello')">hello</a>
</body>
这样试试
style="opacity:0.0;filter:alpha(opacity=0);"
改成这样看看行不行
maring:0;
padding:0;
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
background:#000;
filter:alpha(opacity=30);
opacity:0.3;
}
<head>
<meta http-equiv="Content-type" content="text/html;charset=utf8" /> <style>
*{padding:0;margin:0;}
body{padding:20px;}
.overlay{position:absolute;width:500px;height:500px;border:1px solid red;z-index:100;display:none;}
</style></head><body>
<div class="overlay" id="over"></div>
<a href="javascript:;" onclick="change()">hello</a>
<script>
function change()
{
document.getElementById('over').style.display="block";
}
</script>
</body></html>