;css代碼:.wby{height: 90px;width: 90px;background-image:&" />

乱子轮视频在线看_樱桃空空人妻无码内射_四川丰满少妇被弄到高潮_在线看片免费人成视频播放

歡迎訪問唐山伍佰億,致力打造唐山最好的網站建設平臺!!!客服中心:4000-199-888??4000-859-888
申請加盟 代理登陸 域名查詢 關于我們
唐山站[切換城市]
低投資高回報
網站不是花錢 是為了賺更多的錢
注重用戶口碑
只有客戶的滿意 才有我們的發展
精湛精英團隊
多年開發經驗 鑄就企業成功之路
首頁 > 新聞中心 > 技術知識

IE6 png圖片透明全部解決方案分享

2014-08-07   16:59:34   來自:伍佰億

方法一:給div增加樣式:

html代碼:



css代碼:

.wby{
height: 90px;
width: 90px;
background-image: url(img.png)!important;/* FF IE7 */
background-repeat: no-repeat;

_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img.png'); /* IE6 */
_ background-image: none; /* IE6 */
}

方法二:給img增加樣式:

html代碼:







css代碼:

.wby img {
azimuth: expression(
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);

方法三:第三方js實現:

上面js源文件大家可以在百度直接搜索關鍵詞“ie3 png透明js”就可以了

以上就是先階段比較好用的ie6透明方法 ,希望對大家有所幫助

上一篇:伍佰億網站建設大概需要幾天 下一篇:沒有了