Category Archives: js 語法應用

處理 ie6 PNG 無法支援透明(使共透明)的方法

我是用 jquery 最快了.. 方法如下: <script type=”text/javascript” src=”js/jquery-1.4.2.min.js”></script> <script type=”text/javascript” src=”js/png/jquery.pngFix.pack.js”></script> 導入以上兩個jquery 元件入網頁中 然後再加入語法(Ps://以下語法為已處理 和mootools 衝突的寫法.即為已換成jQuery(document)的方式,和原本的寫法不同;) <script type=”text/javascript”>     jQuery(document).ready(function(){             jQuery(document).pngFix();     }); </script> 然後看看ie6 中的 PNG 就會成為透明的了.

Posted in js 語法應用 | Leave a comment