0

完整的CSS文件:http://pastebin.com/9LjYjiUFCSS背景上一個div

.body-content{ 
    background-image: white url("images/content-bg.gif"); 
    background-repeat: repeat-y; 
    background-position: left bottom; 

} 

這是HTML:

<div class="content-bead bg2 rockwell"> 

    <div class="body-content"> 

     <div class="body-content-sub"> 
      <div id="content-left"> 

      </div> 
      <div id="content-main"> 

      </div> 
     </div> 

    </div> 

</div> 

==更新CSS ===

background-image: url(images/content-bg.gif); 
background-repeat: repeat-y; 
background-position: left bottom; 
background-color:#FFFFFF; 

仍然沒有 我不能得到背景圖像來提出。在

+0

它在其他瀏覽器中工作嗎?你有沒有仔細檢查圖像的位置? – Dan 2011-04-07 03:17:33

+0

打開鏈接時出現未知的pastebin id錯誤 – topek 2011-10-07 19:21:56

回答

0

也許去除白色,因爲它不是「背景圖片」 的一部分,或者將其更改爲「背景」

5

這是因爲背景圖像不是組合的屬性。無論是接他們分開:

background-image: url('images/content-bg.gif'); 
background-color: white; 

或將它們組合起來:

background: white url('images/content-bg.gif') left bottom repeat-y; 
0

除去白色值。

.body-content{ 
    background-image: url("images/content-bg.gif"); 
    background-repeat: repeat-y; 
    background-position: left bottom; 
} 
1

給予溢出:汽車與BG容器上的嘗試,它可能是浮動內需要的元素被清除。剛剛經歷過IE7的這個問題,但在所有其他瀏覽器中都能正常工作