久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      html添加遮罩效果

      html添加遮罩效果

      這里使用div+css的方式,加載中的圖片是網(wǎng)上下載的動(dòng)圖,大家可以根據(jù)自己的需要進(jìn)行修改。

      (推薦教程:html教程)

      實(shí)現(xiàn)代碼:

      <!DOCTYPE html> <html> <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;}         /*遮罩圖片居中顯示*/         .zhezhao{             position: absolute;             top:50%;             left: 50%;             transform: translate(-50%,-50%);         }     </style> </head> <body> <input id="btnshow" type="button" value="Show" onclick="showdiv();"/> <div id="bg">     <img class="zhezhao" src="img/timg.gif"> </div>    <!-- 遮罩層  --> <div id="show">測(cè)試     <input id="btnclose" type="button" value="Close" onclick="hidediv();"/> </div> </body> </html>

      效果:

      html添加遮罩效果

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)