css – (真的)长背景图像不会在iPad Safari上渲染

由于一些未知的原因,iPad Safari不会显示很长的背景图像。在 my example,背景图像是1,000 x 10,000像素。相同的例子适用于任何桌面浏览器,例如Safari,Firefox等

我知道CSS中的背景重复,但不幸的是,我的具体情况不适用。

解决方法

移动Safari限制了二次采样之前将显示的大小背景图像,您可能会因为背景大小而受到此问题的打击:

The maximum size for decoded GIF,PNG,and TIFF images is 3 megapixels for devices with less than 256 MB RAM and 5 megapixels for devices with greater or equal than 256 MB RAM.

That is,ensure that width * height ≤ 3 * 1024 * 1024 for devices with less than 256 MB RAM. Note that the decoded size is far larger than the encoded size of an image.

见:Know iOS Resource Limits

相关文章

Css常用的排序方式权重分配 排序方式: 1、按类型 ...
原文:https://www.cnblogs.com/wenruo/p/9732704.html 先上...
css属性:word-wrap:break-word; 与 word-break:break-all 的...
https://destiny001.gitee.io/color/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...
css之background的cover和contain的缩放背景图 对于这两个属...