好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

遮罩的几种写法_html/css_WEB-ITnose

遮罩一:

 1   2   3   4      DIV CSS遮罩层  5       6 function showdiv() { 7             document.getElementById("bg").style.display ="block"; 8             document.getElementById("show").style.display ="block"; 9         }10 function hidediv() {11             document.getElementById("bg").style.display ='none';12             document.getElementById("show").style.display ='none';13         }14      15      16         #bg {17             display: none;18             position: absolute;19             top: 0%;20             left: 0%;21             width: 100%;22             height: 100%;23             background-color: black;24             z-index: 1001;25             -moz-opacity: 0.7;26             opacity: .70;27             filter: alpha(opacity=70);28         }29 30         #show {31             display: none;32             position: absolute;33             top: 25%;34             left: 22%;35             width: 53%;36             height: 49%;37             padding: 8px;38             border: 8px solid #E8E9F7;39             background-color: white;40             z-index: 1002;41             overflow: auto;42         }43      44  45  46      47     

查看更多关于遮罩的几种写法_html/css_WEB-ITnose的详细内容...

  阅读:35次