当前位置: 代码迷 >> JavaScript >> js预览本map片(根据路径)
  详细解决方案

js预览本map片(根据路径)

热度:148   发布时间:2013-07-16 22:38:05.0
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>

?

  相关解决方案