【发布时间】:2012-02-13 12:39:23
【问题描述】:
整页背景图片在 iPhone 和 iPad (safari iOS 5.01) 上显示为截断。 http://www.theantarcticbookofcookingandcleaning.com
如果您能给我一些建议,那就太好了。提前感谢您的帮助!
截图如下: http://www.soojincreative.com/photo.PNG
使用的代码 -> 背景图片在#wrapper:
enter code here
body {
font: normal normal 16px/22px "Kingfisher Regular", Georgia, "Times New Roman", serif;
font-size-adjust: 0.47;
color: #000;
background-color: #e3e8ee;
margin-top: -13px;
}
#wrapper {
padding-top:none;
background: url('images/background2.jpg') no-repeat center;
width: 1280px;
margin: 0 auto;
overflow:hidden;
}
【问题讨论】:
-
不是答案,但您的页面也不能很好地处理桌面屏幕。背景图像不会按比例放大以处理非常大的窗口,并且使窗口变小会切断内容。此外,您正在尝试包含来自本地服务器 (127.0.0.1:8080) 的样式表(错误显示在 Safari 错误控制台中)。
标签: iphone css ipad background-image safari