CSS background image rendering differently on iPhone

前端 未结 5 1753
谎友^
谎友^ 2021-01-02 09:33

We have a page design that works great in every PC browser that I have tried, but goes strange when viewed with an iPhone or iPod Touch.

The problem is something to

5条回答
  •  误落风尘
    2021-01-02 10:04

    I realize this post is two years old as I write this, but I tried something that worked, perhaps not the best way to go but it solved my problem.

    First step was to save my background image as a .png which cured the problem completely...except being a 1200px x 12000px background image, the .png file was a monster.

    So, I opened the .png file in Photoshop and saved it optimized for web and devices as a .jpg and uploaded that file and it worked like a charm on the iPhone and all of the big 5 browsers.

    Hope that helps!

提交回复
热议问题