微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

iFixPng improved

程序名称:iFixPng improved

授权协议: 未知

操作系统: 跨平台

开发语言: JavaScript

iFixPng improved 介绍

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.

iFixPng improved 官网

http://plugins.jquery.com/project/iFixPng2

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐