遮罩层
来源:互联网 发布:知无知 谌洪果视频 编辑:程序博客网 时间:2024/06/06 10:56
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>DIV CSS遮罩层</title>
<script language="javascript" type="text/javascript">
function showdiv() {
document.getElementById("bg").style.display = "block";
document.getElementById("show").style.display = "block";
}
function hidediv() {
document.getElementById("bg").style.display = 'none';
document.getElementById("show").style.display = 'none';
}
</script>
<style type="text/css">
#bg{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.7; opacity:.70; filter: alpha(opacity=70);}
#show{display: none; position: absolute; top: 25%; left: 22%; width: 53%; height: 49%; padding: 8px; border: 8px solid #E8E9F7; background-color: white; z-index:1002; overflow: auto;}
</style>
</head>
<body>
<input id="btnshow" type="button" value="Show" onclick="showdiv();" />
<div id="bg"></div>
<div id="show">测试
<input id="btnclose" type="button" value="Close" onclick="hidediv();" />
</div>
</body>
</html>
- 遮罩层
- 遮罩层
- 遮罩层
- 遮罩层
- 遮罩层
- 遮罩层
- 遮罩层
- 遮罩层
- 遮罩层
- 遮罩层
- 遮罩层
- 遮罩层
- 遮罩层
- 遮罩层
- 遮罩层
- 遮罩层技术
- 遮罩层效果
- js 遮罩层
- poj 3678 Katu Puzzle 2-SAT
- hdoj 3058 ac自动机+高斯消元
- 使用GNS3
- java_父类和接口的引用类型的代码及其详解_原创
- [日志]电脑开不了机修理
- 遮罩层
- 2013 暑假多校训练 6总结
- [poj 2978]Colored Stones[状态压缩DP]
- Poj 1823 Hotel (线段树 区间合并 成段更新)
- html
- Jquery获取select选中项中自定义属性的值
- VS2010下使用SerialPort类出现The variable 'comstat' is being used without being initialized
- Wikioi 天梯 素数判定(1430)
- css学习代码-颜色与背景