问题
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