日期:2014-05-16  浏览次数:20713 次

html中关于背景图片问题的请教
还有人吗,想请教各位一个问题:有一个页面,背景是上面一幅图,下面是纯色的,我把图片切出来做为背景,然后下面再加了个背景为纯色的命令:

body{margin:0 auto; padding:0; font-size:12px; font-family:"宋体";background:url(imgs/bg.jpg) no-repeat center top;background:#470101;}


然后效果显示出来是直接被后面的背景给覆盖了,我的前半部分图片没有显示出来。。想请教下各位,这种body里面背景既有纯色的也有图像我该怎么进行处理呢


------解决方案--------------------
body{margin:0 auto; padding:0; font-size:12px; font-family:"宋体";background:#470101 url(imgs/bg.jpg) no-repeat center top;}