2010-07-18 59 views
0

嘿傢伙..退房褪色的灰色頁面的頂部和灰色這裏頁腳http://www.alcatel-lucent.com/wps/portal/BellLabs ..如何我得到這個使用CSS ...我嘗試使用如何獲得這樣的頂部和底部欄?

#bgtop{ 
background-image:url('bg_top.JPG'); 
background-repeat:repeat-x; 
margin-top:auto; 
} 

但是,這並不工作..請幫助

+1

你總是可以看到這個網站的來源,並學習如何做到這一點 – 2010-07-18 14:04:10

+2

這就是alcatel所使用的:'background:white url(http://www.alcatel-lucent.com/wps/themes/html/ ExternalVGAMain/images/menu-one-button-normal.jpg)repeat-x 50%0%;' 如果你有這樣的問題,用更多的代碼會非常有用。也許你可以在http://jsfiddle.net/ – jigfox 2010-07-18 14:05:47

回答

1

嘗試指定高度

#bgtop{ 
background-image:url('bg_top.JPG'); 
background-repeat:repeat-x; 
margin-top:auto; 
height: 40px; 
} 
+0

中創建一個例子完美!謝謝! – Laz 2010-07-18 14:13:39

0

先給html的你想重複-X的背景圖像,它應該工作的方式。