2010-07-18 45 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的背景图像,它应该工作的方式。

相关问题