FF异常控制台报Imagecorruptortruncated:http.的错
FF错误控制台报Image corrupt or truncated:http...的错 浏览器:火狐18.0.1 html头:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://HdhCmsTestw3.org/TR/html4/loose.dtd"> css中的代码:.xxx {
width: 1024px;
height: 768px;
position: absolute;
-webkit-text-size-adjust: none;
background-image: url(xx/xxx/xxx.jpg);
zoom: 0.15;
-moz-transform: scale(0.15) translate(-2830px, -2110px); } 错误信息:Image corrupt or truncated: http: //localhost/xxx/xxx/xx/xxx/xxx.jpg 触发方式:清掉火狐的缓存,刷新页面,无错,再次刷新,出错,再刷新,再出错。 其他情况:已排除图片文件本身损坏的可能,以及路径错误的可能,在报错的时候该样式仍可正常生效,图片也显示正常(清掉缓存后和二次刷新后均可正常显示)。 请教大家Image corrupt or truncated:http:/ /localhost/xxx/xxx/xx/xxx/xxx.jpg这个错误如何解决??
解决方案:
pg是以字节FFD9结尾的,并且整个jpg文件也只有一个FFD9,估计火狐通过这个判断的 #8说的也是一种可能,就是用了非jpg格式的图片但发jpg的mimetype(或扩展名,不知道FF有没检测mimetype),FF没有读到FFD9就认为jpg文件未传完/错图
查看更多关于FF异常控制台报Imagecorruptortruncated:http.的错的详细内容...
阅读:34次