z-index ga berfungsi di IE 6. Solusi dengan memberikan z-index lebih tinggi pada parent element nya.
PNG fix di IE 6 : dari http://www.komodomedia.com/blog/2007/11/css-png-image-fix-for-ie/. Sangat handy, tanpa perlu processing dengan JS. css ini dapat merubah background image & filter pada saat runtime.
* html img,
* html .png{
behavior:
expression((this.runtimeStyle.behavior="none")&&(this.pngSet?this.pngSet=true:(this.nodeName
== "IMG" &&
this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage
= "none",
this.runtimeStyle.filter =
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src +
"', sizingMethod='image')",
this.src = "transparent.gif"):(this.origBg = this.origBg?
this.origBg
:this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),
this.runtimeStyle.filter =
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg
+ "', sizingMethod='crop')",
this.runtimeStyle.backgroundImage = "none")),this.pngSet=true)
);
}
No comments:
Post a Comment