解决方案 »

  1.   


    .ceshicss{ width:100%; height:60px; position:fixed; left:0; top:0; z-index:9999998; _display:none}
    这个IE6是不支持的,如果要IE6支持只能用JS了
      

  2.   

    使用position:fixed关于fixed属性,在什么情况下需要用,怎么用,首先,我们应该先了解下fixed属性的说明:fixed总是以body为定位时的对象,总是根据浏览器的窗口来进行元素的定位,通过"left"、 "top"、 "right"、 "bottom" 属性进行定位。那么,我们了解了fixed属性的说明后,就可以知道它的作用了。当我们需要使一个层相对于浏览器来自动调整该层的位置的时候,如果你使用position的absolute属性来定位该层,你会发现absolute属性并不能达到你想要的css效果,。这时,就需要要用到fixed属性来定位该层了,
      

  3.   

    .gedidh{ margin:0 auto; width:100%; height:50px; top:0; left:0; background:url(../images/gedidh_bg.jpg) repeat-x left top; position: fixed; _position: absolute; z-index: 100; clear:both;}