由于一些未知的原因,iPad Safari不会显示很长的背景图像。在
my example,背景图像是1,000 x 10,000像素。相同的例子适用于任何桌面浏览器,例如Safari,Firefox等
我知道CSS中的背景重复,但不幸的是,我的具体情况不适用。
解决方法
@H_404_7@ 移动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.