IE PNG Fix

码农软件 · 软件分类 · jQuery图像处理 · 2019-12-26 22:13:40

软件介绍

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

本文地址:https://codercto.com/soft/d/22029.html

黑客与画家

黑客与画家

[美] Paul Graham / 阮一峰 / 人民邮电出版社 / 2011-4 / 49.00元

本书是硅谷创业之父Paul Graham 的文集,主要介绍黑客即优秀程序员的爱好和动机,讨论黑客成长、黑客对世界的贡献以及编程语言和黑客工作方法等所有对计算机时代感兴趣的人的一些话题。书中的内容不但有助于了解计算机编程的本质、互联网行业的规则,还会帮助读者了解我们这个时代,迫使读者独立思考。 本书适合所有程序员和互联网创业者,也适合一切对计算机行业感兴趣的读者。一起来看看 《黑客与画家》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具