ie8 图片显示不了???过来看一下各位!

来源:百度知道 编辑:UC知道 时间:2024/05/17 03:09:19
function imgChange(url)
{
document.getElementById('imgView').src =url.value;
}
</head>
<body>
<img style="WIDTH: 343px; HEIGHT: 336px" id="imgView" alt="预览图片" src="file:///D:\CSharp\HuiPublishing\WebApp\Images\about32.gif"
width="343" height="336" runat="server">
.............

<input style="WIDTH: 188px; HEIGHT: 23px" onpropertychange="imgChange(this)" id="picFile"size="12" type="file" name="txtpic" runat="server">

当我改变图片路径时,能够激发脚本事件,但就是图片显示不了,img当接收服务器端路径时却能够显示,我想有个选择图片时达到预览的效果,可把我气坏了。给img一个默认的地址也不能显示
<style type="text/css">#newPreview { FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale) }
</style>
function PreviewImg(imgFile)
{
//原来的预览代码,不支持

可能是路径

IE8 现在最好不要用

我调试在IE8,不能调试。。。。。。。。。。。。。。。。设的断点无效

我直接又换IE7了

<img style="WIDTH: 343px; HEIGHT: 336px" id="imgView" alt="预览图片" src="D:\CSharp\HuiPublishing\WebApp\Images\about32.gif"
width="343" height="336" runat="server">

不知道在IE8上是不是可以 没用过IE8

ie8就是垃圾,啥都不说了直接用ie7

明显是你的图片地址有问题