`

js预览本地图片(根据路径)

    博客分类:
  • js
阅读更多
PreviewImg(obj.PhotoPath+cardId+".bmp");
	$("#personcardimage").show();


function PreviewImg(imgFile){  
	//alert(imgFile)
    document.getElementById("personcardimage").style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod = scale)";   
    document.getElementById("personcardimage").filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgFile;
  
   
}

<div id="personcardimage" style="display:none;width:102px;height: 126px;"></div>

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics