background-color:red;
opacity:.5;
filter:Alpha(opacity=50); /* IE8 以及更早的浏览器 */
$(“#demo”).css({opacity:.4})
$(“#myElement”).animate({ opacity: .4 }, 1000, function() {
// 动画完成,所有浏览器下有效 });
#rgba{background:rgba(98,135,167,.4);}
#hsla { background: hsla(207, 38%, 47%, .4); }
欢迎光临 苏飞论坛 (http://www.sufeinet.com/) | Powered by Discuz! X3.4 |