您应该添加canvas标签
onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block';
即内belowline,
Your browser does not support the HTML5 canvas tag.
与ID为 '光' 和 '褪色' 创建两个DIV
Close
Content goes here
并写下面的CSS。
.black_overlay{
display: none;
position: fixed;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: black;
z-index:1001;
-moz-opacity: 0.8;
opacity:.80;
filter: alpha(opacity=80);
}
.white_content {
display: none;
position: fixed;
top: 10%;
left: 25%;
width: 50%;
height: 500px;
padding: 16px;
border: 13px solid #808080;
background-color: white;
z-index:1002;
overflow: auto;
}