Should bmp files be used for websites

后端 未结 2 1194
既然无缘
既然无缘 2021-01-19 11:53

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

相关标签:
2条回答
  • 2021-01-19 12:07

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

    0 讨论(0)
  • 2021-01-19 12:17

    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.

    0 讨论(0)
提交回复
热议问题