我的客户希望把一个黑色背景的顶部导航栏下。它可以在 http://seasonlawn.com/CellularSolutionsHTML/catalog.html 有人可以帮助我如何在CSS代码这个背景
背景
回答
添加背景颜色为该类
#main-nav .categorymenus{background-color:#000;}
.categorymenus ul{here background image failed to load check this once}
非常感谢! –
@RobertLamb你的欢迎......也尝试接受答案whihc shole你的问题检查这个http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work –
您正在使用什么调试器?我想,与早先的探险之旅我eror控制台它从未表示 –
在文本编辑器中打开default.css
文件并更改下面的代码:
#headertop {
width: 100%;
min-width: 1130px;
padding-bottom: 7px;
background: url("../images/topnav-rep.png") repeat-x left top transparent;
height: 32px;
position: fixed;
z-index: 99999;
top: 0;
left: 0;
border-top: 1px solid grey;
margin-top: -1px;
}
到
#headertop {
width: 100%;
min-width: 1130px;
padding-bottom: 7px;
background: #000000;
height: 32px;
position: fixed;
z-index: 99999;
top: 0;
left: 0;
border-top: 1px solid grey;
margin-top: -1px;
}
目前问题是../images/topnav-rep.png
图像不可访问。在上面的行中,我们将删除图像并为#headertop
元素黑色(十六进制 - >#000000)制作背景颜色。
感谢所有这么多人一直在寻找甚至没有考虑检查我的.css中的链接,这很奇怪,因为它在本地机器上工作。 –
<div class="categorymenus" style="display: block;background: url("http://www.lacovachamiami.com/images/layout/lightBackgound.png") repeat ;">
- 1. 背景背景内
- 2. 背景或背景颜色?
- 3. 以div背景为背景
- 4. 半页背景/列背景
- 5. CSS失败 - 背景位置,背景重复,背景大小,背景附件
- 6. 背景
- 7. 背景
- 8. 背景
- 9. 背景
- 10. 背景
- 11. 背景
- 12. 背景
- 13. 背景
- 14. 背景
- 15. 背景
- 16. 背景
- 17. 背景
- 18. CSS:背景颜色的背景图像
- 19. 背景梯度背景图像
- 20. CSS与父背景混合背景
- 21. 背景颜色div与背景图片
- 22. 随机背景图片背景剪辑
- 23. 背景链接(在所有的背景!)
- 24. 在背景图像背景图像
- 25. 背景颜色和背景在一次
- 26. 背景减除与固定的背景
- 27. 背景图像覆盖背景颜色
- 28. 背景图片上的背景图像
- 29. 背景模式与背景任务
- 30. HTML背景重叠身体背景
UL下...图像加载失败 –
林不知道你的意思,你能解释一下吗?即时通讯只有16我没有这方面的经验,我教我自己所有我知道的。 –
其萤火虫检查链接回答 –