opacity不相容ie8的問題解決方案

來源:互聯網
上載者:User
今天測試專案的時候發現opacity屬性不相容ie8,最後上網查了一下發現使用下面的屬性就可以解決了,很開心!

css: filter:Alpha(Opacity=50)/*這是IE的私人屬性,只適用於IE*/

要想相容各大瀏覽器使用以下屬性就可以了

opacity: 0.5; /* 支援CSS3的瀏覽器(主流)*/

-moz-opacity:0.5; /* Firefox私人屬性*/

filter:alpha(opacity=50); /* IE私人屬性,僅適用於IE*/

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.