为什么网络上的图像逐行加载? [英] Why do images on the web load line by line?

查看:75
本文介绍了为什么网络上的图像逐行加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么网上的图片会逐行加载?为什么不从左上像素到右下像素?是关于浏览器还是CSS默认值?

Why do images on the web load line by line? Why not from top left pixel to bottom right pixel? Is it about browser or css defaults? Is it possible to change that to show pixels at the moment they are loaded or after whole image is loaded?

推荐答案

这取决于图像格式,有些可以逐行加载,有些可以逐行加载,并且可以成块加载(因为模糊,可以看到像素化图像,然后可以加载更多数据,减少模糊,依此类推),有些具有在显示之前完全加载。

It depends on image format, some can load line by line, some are "progressive" and can load in "chunks" (firs a blurry, pixelated image is visible, then it loads some more data and becomes less blurry, and so on), some have to load in full before they can be displayed.

这篇关于为什么网络上的图像逐行加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆