Are there any arbitrary restrictions on maximum image pixel size in IE and Webkit mobile?

☆樱花仙子☆ 提交于 2019-12-31 03:38:06

问题


A recent project made use of very pixel-large (~5e3px2) but still byte-small (~100kb — GIF) images, which both IE8 and iOS Safari refused to render. Both seem aware of the image size, but simply do not render them. A practical solution is to slice the image, but are there any documented arbitrary restrictions on maximum image pixel size for these browsers?


回答1:


Mobile Safari has a 3-megabit buffer for non JPG images. Anything larger than that will not display. Calculate size = w * h * 8 for GIFs.

Any element using CSS "Filters" on IE8 will fail to display on anything with a dimension bigger than 4096 pixels.



来源:https://stackoverflow.com/questions/9317112/are-there-any-arbitrary-restrictions-on-maximum-image-pixel-size-in-ie-and-webki

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