当前位置:  软件>JavaScript软件

IE PNG Fix

    来源: Web服务器/前端 iis7站长之家   发布时间:2015-01-28

    本文导语:  The PNG Fix jQuery plug-in was developed to create a quick-and-easy fix for the PNG transparency issue in Internet Explorer 6. It's partially based on Angus Turnbulls TwinHelix fix, but aims to remove un-needed HTTP requests, demanded by an .htc CSS behaviour() based solution. Please note, repeata...

The PNG Fix jQuery plug-in was developed to create a quick-and-easy fix for the PNG transparency issue in Internet Explorer 6. It's partially based on Angus Turnbulls TwinHelix fix, but aims to remove un-needed HTTP requests, demanded by an .htc CSS behaviour() based solution.

Please note, repeatable backgrounds are still not fully supported at this time. The IE AlphaImage filter is restricted to scaling backgrounds, rather than repeating (or tiling).

For full API information visit Campbells Digital Soup

Examples

To apply the fix to all images within the page:

 

jQuery(function($) {
    $("img").pngfix();
});

 

A more efficient approach would be to apply it to all image elements that reference PNGs, or directly via IDs.

 

jQuery(function($) {
    $("img[@src$=png], #image-one, #image-two").pngfix();
});

 

 

Options

There is currently only one option for this plug-in:

repeatMethod Choose between the three options for background scaling (inline with the MSDN guidance for the AlphaLoader filter:
Crop: renders the image at initial size.
Scale: stretches the image to the size of applied element.

For full API information visit Campbells Digital Soup


    
 
 

您可能感兴趣的文章:

  • IE PNG Alpha Fix
  • Unit PNG Fix
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • java命名空间javax.print类docflavor.url的类成员方法: png定义及介绍
  • Java的png图像生成库 PNG Encoder
  • java命名空间javax.print类docflavor.byte_array的类成员方法: png定义及介绍
  • C++ PNG类库 PNGwriter
  • java命名空间javax.print类docflavor.input_stream的类成员方法: png定义及介绍
  • 用程序生成PNG?
  • PNG图像文件调整工具 TweakPNG
  • s2png
  • PNG图片压缩工具 pngcrush
  • PNG 图像处理工具 Pngyu
  • PNG 图像处理工具 PNGoo
  • 图片格式转换工具 gif2png
  • 命令行网页截图程序 khtml2png
  • 将文件压缩成png PNGDriver
  • 怎么用GS命令实现PDF文件转化PNG?
  • 批量PNG图像转换库 pngquant
  • 解码 iOS 的 PNG 图像 NYXPNGTools
  • PNG图片优化工具 OptiPNG
  • 影像處理工具 PNG and MNG tools
  • 求有关png图像处理的libpng库的有关中文资料
  • motif 存储 png 图像问题请教


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3