官方网站:http://www.twinhelix.com/css/iepngfix/
使用方法:
Follow these simple steps to add this to your page:
- Copy and paste
iepngfix.htc
andblank.gif
into your website folder. - Copy and paste this into your website's CSS or HTML:
<style type="text/css">
img, div { behavior: url(iepngfix.htc) }
</style><style type="text/css">
img, div, a, input { behavior: url(/css/resources/iepngfix.htc) }
</style> - If your site uses subfolders, open the .HTC file in a text editor like Windows Notepad and change the
blankImg
variable to include a correct path to blank.gif like so:IEPNGFix.blankImg = '/images/blank.gif';
- If you want support for CSS1 background-repeat and background-position, make sure you include the add-on .JS file in your
<head>
:<script type="text/javascript" src="iepngfix_tilebg.js"></script>
- Sit back and enjoy! Perhaps consider making a donation to support this script's development if you like what you see, as I have spent hundreds of hours developing, testing and supporting it :). Alternatively, I would certainly appreciate a crediting link on your site back to mine!