我给ul加了一个背景图片 background 火狐 ie9 ch都显示。唯独在IE8中不显示

 

之前的样式代码

background: url("/images/search.gif") no-repeat scroll 0 0 rgba(0, 0, 0, 0);

在ie8中改成

            background-image:url("/images/search.gif");
           
            background-attachment:scroll;
            background-repeat:no-repeat;
            
            background-position-x:0%;
            background-position-y:0%;
           
            background-color:transparent; 

 

这样之后我的就可以了。不知道你的是不是可以。

 

注:如果上面放了一个button 但不先看见这个button 这要设置该buton的样式  background-color:transparent;

 

相关文章:

  • 2021-05-29
  • 2021-12-17
  • 1970-01-01
  • 2022-12-23
  • 2021-10-19
  • 2022-02-07
  • 2022-03-10
  • 2022-01-10
猜你喜欢
  • 2021-11-14
  • 2021-07-18
  • 2022-12-23
  • 2021-06-01
  • 2021-08-19
  • 2022-12-23
相关资源
相似解决方案