IE不能正确显示图片

来源:百度知道 编辑:UC知道 时间:2024/06/02 06:58:41
IE不能正确显示图片,只显示为占位的小方块。
设置中已经打开了现实图片的功能,Flash控件都已经安装过了,还是不能。
但是用TT或傲游(Maxthon)又显示正常的,如何解决?
用其他2台电脑试过都是这样。是我自己用ASP写的网页。一直用TT来看的,偶尔一次用IE发现出来的。

可能是你的浏览器出了点问题

原来是图片的查找显示的问题:
原代码:
Function GetFileName(BlockNo,strType)
strFile = Server.MapPath("/") & "/BlockImage/" & trim(BlockNo) & ".jpg"

If file.FileExists(strFile) = true Then
GetFileName = strFile
else
GetFileName = "../BlockImage/" & trim(strType) & ".jpg"
end if
end Function
先代码:
Function GetFileName(BlockNo,strType)
strFile = Server.MapPath("/") & "/BlockImage/" & trim(BlockNo) & ".jpg"

If file.FileExists(strFile) = true Then
GetFileName = "../BlockImage/" & trim(BlockNo) & ".jpg"
else
GetFileName = "../BlockImage/" & trim(strType) & ".jpg"
end if
end Function