[英]Black background in iphone with safari
也許您的背景圖片沒有加載到iPhone上。 我已經用iPad進行了測試,一切都很好。
嘗試改善body
CSS
body {
font: 14px/16px georgia, times, times new roman, arial;
background-image: url(http://www.lazzarotto.it/templates/lazzarotto/image/background.jpg);
background-repeat: repeat-x;
background-color: #fff;
padding: 0px;
margin: 0px;
color: #554e3c;
}
至
body {
font: 14px/16px georgia, times, times new roman, arial;
background: url(http://www.lazzarotto.it/templates/lazzarotto/image/background.jpg) #fff repeat-x;
padding: 0px;
margin: 0px;
color: #554e3c;
}
您也可以選擇CSS3 Gradient來實現漸變背景效果
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.