问题描述
- 如何修改不用设置浏览器的Active插件呢,
-
else {//此处为IE6,7,8,9的操作
file.select();
file.blur();
var src = document.selection.createRange().text;
var div_sFilter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src='" + src + "')";
var img_sFilter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=image,src='" + src + "')";preview_div.innerHTML = ""; var img = document.createElement("div"); preview_div.appendChild(img); img.style.filter = img_sFilter; img.style.visibility = "hidden"; img.style.width = "100%"; img.style.height = "100%"; function setImageDisplay() { var rect = perviewImage.clacImgZoomParam(MAXWIDTH, MAXHEIGHT, img.offsetWidth, img.offsetHeight); preview_div.innerHTML = ""; var div = dcmt.createElement("div"); div.style.width = rect.width + 'px'; div.style.height = rect.height + 'px'; div.style.marginLeft = rect.left + 'px'; div.style.marginTop = rect.top + 'px'; div.style.filter = div_sFilter; preview_div.appendChild(div);
解决方案
这是从本地中读取文件吗?很少用这种方法
时间: 2024-12-11 14:02:32