ITeye博客

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

dpn525 · 2013-07-12 09:53 · js · Web前端 · Markdown

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>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。