2010-08-25 31 views

回答

10

使用CSS來指定您的背景圖片(background已被棄用)並關閉重複。

把這個在您的head部分:

<style type="text/css"> 
body 
{ 
    background-image: url(images/bg_wide.gif); 
    background-repeat: no-repeat; 
} 
</style> 

還有定位的背景圖像(background-position)的屬性。

more on defining backgrounds at w3schools

+0

謝謝!解決方案是 background-repeat:repeat-x – Ronny 2010-08-25 15:06:54

2

您可以使用這種風格,並保持圖像的重複:

body { 
    background:url(images/bg_wide.gif) no-repeat; 
} 

no-repeat將保持圖像的重複。