Home > Web Front-end > HTML Tutorial > FF异常控制台报Image corrupt or truncated:http.的错

FF异常控制台报Image corrupt or truncated:http.的错

PHP中文网
Release: 2016-06-23 09:26:27
Original
2209 people have browsed it

FF错误控制台报Image corrupt or truncated:http...的错
浏览器:火狐18.0.1
html头:
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文件未传完/错图



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template