当前位置:  软件>JavaScript软件

iFixPng improved

    来源:    发布时间:2015-01-05

    本文导语:  This plugin is an improvement to the original iFixPng plugin. It may use some more resources and work slower, but there are some important improvements: The image or element with a background image doesn't have to be visible. background-position is now supported, including an IE absolute position...

This plugin is an improvement to the original iFixPng plugin. It may use some more resources and work slower, but there are some important improvements:

  • The image or element with a background image doesn't have to be visible.
  • background-position is now supported, including an IE absolute position fix. (bottom: -1px || bottom: 0px)
Update
  • Since 3.1.0 background-position in percentages is fully supported. See the demo page for a demonstration.

Any improvements to speed or functionality are welcome. For as long as IE6 will be around, we need to tackle this problem together.

The unfix method was removed.

Usage:

 

// Set the transparent pixel
jQuery.ifixpng('/images/pixel.gif');
jQuery('img, .bgPng').ifixpng();

 

note! When using jquery versions older than 1.2.6, please make sure to use the dimensions plugin, as the plugin relies on the outerWidth / outerHeight methods.

Known issues:
  • Background-repeat is not supported.

    
 
 

您可能感兴趣的文章:

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












  • 相关文章推荐
  • iFixPng


  • 站内导航:


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

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

    浙ICP备11055608号-3