欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

JS解決ie6下png透明的方法實(shí)例

 更新時(shí)間:2013年08月02日 10:00:04   作者:  
解決ie6下png透明的問(wèn)題想必前端都比較清楚,雖然有很多方法,但是我覺(jué)得用JS還是最省事的方法,不管是圖片還是背景圖片都OK。
復(fù)制代碼 代碼如下:

<!DOCTYPE html>
<html lang="en">
<head>
<title>解決ie6下png透明方法之JS法-</title>
<style type="text/css">
 .a{background: #FFFF99 ;  background-image: url(bg.jpg); height:800px;padding: 50px;  }
 .b{ float: left;  background: url(tra.png) no-repeat 0 0; width:240px; height:307px; margin-right:20px;}
</style>
<!--[if IE 6]> //只有IE6才調(diào)用
<script src="http://www.dbjr.com.cn/js/iepng.js" type="text/javascript"></script> //此處調(diào)用透明的JS
<script type="text/javascript">
   EvPNG.fix('div, ul, img, li, input');  //EvPNG.fix('包含透明PNG圖片的標(biāo)簽'); 多個(gè)標(biāo)簽之間用英文逗號(hào)隔開(kāi)。
</script>
<![endif]-->
</head>
<body>
<div class="a">
    <div class="b">

      <p>腳本之家</p>
      <p><a href="http://www.dbjr.com.cn">www.dbjr.com.cn</a></p>
      <p>上邊的鏈接可以點(diǎn)開(kāi)喲</p>
   </div><!--背景調(diào)用-->

    <img src="tra.png" width="240"  height="307" alt="" /><!--頁(yè)面插入圖片-->
</div>
</body>
</html>

相關(guān)文章

最新評(píng)論