RSS Feed!

貓上腦

我近期

Twitter Updates

    follow me on Twitter

    賣豆”卜”

    PNG 能在 Internet Explorer 6 透明的方法

    最近找到 PNG 在IE6 上能透明較便利的方法, 

    建基於 jQuery, 此方法需要使用 Javascript 和 CSS

     

    假設你有這一段code :

    <style>
    .element{background:url(/some/images/image.png)}
    </style>

    <div class=”elemet”></div>

     

    當執行 $(‘.element’).fixPNG() 之後,

    class=”element” 的元件的類別(class) 為 “element” 中的背景圖就會由 backgroundImage 改做 Microsoft 的 Filter,

    使 PNG 作結尾的圖片檔案能在InternetExplorer 6 上回覆應有的透明層

    要看原始碼可到….

    http://docs.jquery.com/Tutorials:PNG_Opacity_Fix_for_IE6

    Share and Enjoy:
    • Print
    • Digg
    • Sphinn
    • del.icio.us
    • Facebook
    • Mixx
    • Google Bookmarks
    • Blogplay
    • 豆瓣
    • 豆瓣九点

    Tags: , , ,

    By Leman | 27. Apr 2009 | Java Script, Work | No Comments »

    Leave a Reply

    You must be logged in to post a comment.

    Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin