百度空间模板代码的问题!

来源:百度知道 编辑:UC知道 时间:2024/05/24 14:05:17
自己做的百度空间模板。可是空间底部的图片用IE 可以显示出来(如图)。可是用Firefox就不行。到了底部就没有了。我底部的具体代码如下请问哪里有问题呢?/*脚*/div#main{height:89px;width:760px;background:url(
) bottom center no-repeat; padding-bottom:85px !important}

一般说来,.stage元素是覆盖在#main上面的,#main中加载的图片如果作为脚图的话,会被.stage覆盖掉,所以看不到

在FF中因为对padding属性的解析关系,所以.stage的图片会一直覆盖到结尾,导致#main被整个覆盖掉,这是用padding也搞不定的

你把它和.stage的背景图互换,.stage的背景图用不平铺的脚图,#main的背景图用纵向平铺图,还有把这里的height:89px删掉

#main{ background: url(



) no-repeat center bottom; padding: 0!important; padding-bottom: 70px!important; margin: 0!important; margin-bottom: -20px!important; width: 760px!important; } ----------------------------- 数