A way to correct background scaling in iPad's Safari?

前端 未结 6 1846
醉酒成梦
醉酒成梦 2021-01-31 09:45

I have a website using a huge background image (2000x1500) in a div container (100% x 100%).

When I open that site on Safari on an iPad it gets scaled down (~40%) in a d

6条回答
  •  情深已故
    2021-01-31 10:15

    Adding this worked for me when I had a background image on the background canvas...

    body{ -webkit-background-size: 2000px 1400px;}
    

    Obviously one has to replace the dimensions with the correct size for the image.

提交回复
热议问题