是否应将bmp文件用于网站 [英] Should bmp files be used for websites
问题描述
在将bmp文件用于网站时,是否存在文件大小以外的问题?
Is there a problem - except with the filesize - when using bmp files for websites?
推荐答案
对于2002年以后的浏览器或Internet Explorer,没有问题,它们会显示出来. IE支持它和其他(您可以找到Mozilla的代码/Firefox 和
With browsers post-2002 or with Internet Explorer, there is no problem, they will display it. IE supported it and the others (you can find the code for Mozilla/Firefox and for Chrome/WebKit) followed suit to stay compatible. The only issue is indeed size, which means:
- 您的网络主机上的大量不必要的流量,
- 用户的下载时间更长.
如果您需要无损压缩,请使用PNG:它已得到广泛支持,并且少数不完全支持它的浏览器(例如IE 6)也支持BMP的所有功能-它们只是不支持PNG透明性,但BMP也没有透明度.
If you need lossless compression, use PNG: it's widely supported, and the few browsers that do not support it completely, like IE 6, do support all the features BMP has too -- they just don't support PNG transparency but BMP doesn't have transparency either.
这篇关于是否应将bmp文件用于网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!