.flag_main_content{
  float:left;
  width:100%;
  background:url(images/main_bg.png) repeat-y !important;
  _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/main_bg.png");  
  height:auto;
}<div class="flag_main_content"></div>在网上找的方法,但是在ie6下并没有作用,为什么?
我用jquery.pngFix.js文件会出现在ie6下链接点不了的情况,有没有其它方法

解决方案 »

  1.   

    .flag_main_content{
      float:left;
      width:100%;
      background:url(images/main_bg.png) repeat-y !important;
      _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/main_bg.png");  
      height:auto;
      _ background-image: none; /* 加多这句 */
    }
      

  2.   

    _ background-image: none;
    加了这个,在ie6下背景图就不显示了
      

  3.   

    background-image: url(images/submenu1.png)!important;/* FF IE7 */
    background-repeat: no-repeat;
    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/submenu1.png'); /* IE6 */
    _ background-image: none; /* IE6 */
    我以前一直都是这么用的,可以用啊
      

  4.   

    试试这个文件,我是这么用的
    <SCRIPT language=JavaScript src="/js/usePng.js" type=text/javascript></SCRIPT>http://www.ouxinled.com/js/usePng.js
      

  5.   

    我图片得重复啊,div高度是auto的,还有什么其它方法吗
      

  6.   

    *background-image: none; /* IE6 */
    加个*可以针对IE6,其他的都不会有的
      

  7.   

    哦,我是问你"图片不能重复?"指得啥?现在明白了。可以重复啊。因为设置了
    [code=CSS]background-repeat: no-repeat;[/code]
    才不能重复的,你可以不要这句啊,或者改成
    [code=CSS]background-repeat: repeat;[/code]
      

  8.   


    try use the css:{position:relative;} can slove your problem.