我在让大 jpg 在 ipad 2 上正确显示时遇到了一些困难。该文件为 9577x600 像素,并设置为 div 上的背景图像。我已-webkit-background-size
在该 div 上定义并将其设置为与图像相同的尺寸。我还将我的视口元标记设置为:
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
我的CSS是:
#content { position: relative; background: url(../images/infographic.jpg) left top no-repeat; width: 9577px; height: 600px; -webkit-background-size: 9577px 600px; }
这是我在 ipad 上看到的内容与我在桌面上看到的内容的屏幕截图:
有谁知道这可能是什么原因造成的?