Ctrl+/
IE11
F11
ESC
PgUp
PgDn
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>半透明div
</title>
</head>
<body>
<div id="div1">
<div style="padding:20px;">
<div id="div2">这里是透明的DIV
</div>
</body>
</html>
xxxxxxxxxx
#div1 {
margin:0px auto;
width:500px;
height:370px ;
text-align:center;
background:url(//ku.shouce.ren/files/images/201601/569df23a9ae9b.jpg);
}
#div2 {
height:330px;
filter:alpha(Opacity=80);
-moz-opacity:0.5;
opacity: 0.5;
z-index:100;
background-color:#ffffff;
JS代码...