asp.net下png图片透明 我看了网上的一些实例用CSS的,确实有用。不过遇到一个问题,我用js控制图片切换,网页刚刷新的时候是正常的,切换后就不透明了,了解的帮帮忙啦! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我用的是CSS做的,js里使用className设置,可是不起作用 .pngfix { 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 = "images/blank.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);}[code=JScript]// 切换头像var iconid = 1; // 图片名起始数 1.gifvar iconmax = 8; // 图片名最大值 8.giffunction prev(){ iconid -= 1; if(iconid < 1) { iconid = iconmax; } var imgIcon = document.getElementById("imgIcon"); imgIcon.src = "icons/" + iconid + ".png"; imgIcon.className = "pngfix"; document.getElementById("hdnIcon").value = iconid + ".png";}function next(){ iconid += 1; if(iconid > 8 ) { iconid = 1; } var imgIcon = document.getElementById("imgIcon"); imgIcon.src = "icons/" + iconid + ".png"; imgIcon.className = "pngfix"; document.getElementById("hdnIcon").value = iconid + ".png";}[/code] System.IndexOutOfRangeException: 无法找到表 一个会计问题 AJAXPro2.0返回到客户端的DataSet中的多个表如何通过TableName来获取? 关于fileupload控件的visible 的问题! 关于接口实现? Label显示问题 急救!!!如何取得Excel檔的第一個Sheet Name(來者有分) 无法打开登录所请求的数据库,查了N久 jQuery.extend()调用为什么总是报错呢?高手拔刀相助呀!!在线等.. 水晶报表的分页问题 网页弹出对话框 关于session
.pngfix
{
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 = "images/blank.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);
}[code=JScript]
// 切换头像
var iconid = 1; // 图片名起始数 1.gif
var iconmax = 8; // 图片名最大值 8.giffunction prev()
{
iconid -= 1;
if(iconid < 1) { iconid = iconmax; }
var imgIcon = document.getElementById("imgIcon");
imgIcon.src = "icons/" + iconid + ".png";
imgIcon.className = "pngfix";
document.getElementById("hdnIcon").value = iconid + ".png";
}function next()
{
iconid += 1;
if(iconid > 8 ) { iconid = 1; }
var imgIcon = document.getElementById("imgIcon");
imgIcon.src = "icons/" + iconid + ".png";
imgIcon.className = "pngfix";
document.getElementById("hdnIcon").value = iconid + ".png";
}[/code]