css透明度设置

首先今天我在ff下设置rgba(255,128,0,0.5) 在ff下没问题 在ie8下无法正常识别

我的写法是

qo.css({ background: "none repeat scroll 0% 0% rgba(255, 128, 0,0.5)",color: "rgb(255, 255, 255)", "font-weight": "bolder"});

后来网上查下:

 opacity:0 .2; //支持Firefox, Safari, Chrome   filter: alpha(opacity=20);//支持IE
 
最后:opacity:"1.0" jquery可以这么写
改成: qo.css({opacity:"1.0", background: "none repeat scroll 0% 0% rgb(255, 128, 0)",color: "rgb(255, 255, 255)", "font-weight": "bolder"});
      


 

原文地址:https://www.cnblogs.com/alaricblog/p/3264651.html