利用css 和 js 实现遮罩层

style="position:absolute; width:260px; height:115px; z-index:1; left: 50px; top: 77px; filter:alpha(opacity=30)"

div的透明层实现

<body bgcolor="#ff0ddd">
<div id="layer1" style="position:absolute; width:260px; height:115px; z-index:1; left: 50px; top: 77px; filter:alpha(opacity=30)"> powered by xty_zyn
  <table width="96%" border="1" cellpadding="1" cellspacing="1" bordercolor="#ffffff" bgcolor="#999999">
  <tr>
    
  <td height="25" bgcolor="#f5f5f5" class="13">你也可以在这里插入图片</td>
  </tr>
  <tr>
    
  <td height="20" bgcolor="#f5f5f5" class="12">你想注册地图名片吗</td>
  </tr>
  <tr>
    
  <td height="20" bgcolor="#f5f5f5" class="12">http://mc.mapabc.com</td>
  </tr>
  <tr>
    
  <td height="20" bgcolor="#f5f5f5" class="12">email:[email protected]</td>
  </tr>
  <tr>
    
  <td height="20" bgcolor="#f5f5f5" class="12">地址</td>
  </tr>
  <tr>
    
  <td height="20" bgcolor="#f5f5f5" class="12">邮编</td>
  </tr>
  </table>
  </div>

相关推荐