在ios5上,網站加載正常,看起來正確。因爲ios6我的網站的一部分,使用PNG圖像作爲其背景開始在iPad上呈現,但隨後背景變成黑色沒有明顯的原因(注意所有其他部分保持正確的顏色)。iPad/ios6不能渲染PNG背景圖片
代碼:
<section id="showcase">
<section class="container">
<img src="images/usp.jpg" alt="USP Screen" id="screen">
<h2>title</h2>
<p>the text.</p>
<p>The text.</p>
</section></section>
CSS:
#showcase { background: url(../images/showcasebg.png) repeat-x #ededed; height: 600px; position: relative; top: 87px; }
#showcase h2 { float: left; max-width: 422px; font-family: 'Lobster', cursive; font-size: 36px; margin-top: 20px; }
#showcase p { float: left; max-width: 422px; margin-top: 20px; }
我們可以有一個鏈接到您的網站?也許別的東西是錯的。 – Kyle
不幸的是目前不可能,我希望有人可能會有類似的問題,因爲升級到ios6並可能找到答案。 – John