Should bmp files be used for websites

纵然是瞬间 提交于 2019-12-01 22:15:41

问题


Is there a problem - except with the filesize - when using bmp files for websites?


回答1:


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:

  • a lot of unnecessary traffic from your web host,
  • much longer download times for users.

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.




回答2:


Lack of support? I wouldn't trust many browsers to handle them properly.



来源:https://stackoverflow.com/questions/12276188/should-bmp-files-be-used-for-websites

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!