轉 CSS半透明濾鏡在FIREFOX和IE下面的能夠通用的寫法

來源:互聯網
上載者:User

CSS半透明濾鏡在FIREFOX和IE下面的能夠通用的寫法,記錄下來備用:

CSS代碼
.test{   
  background:#000;   
  color:white;   
  width:200px;   
  position:absolute;   
  left:10px;   
  top:10px;   
   filter: Alpha(opacity=10);   
   -moz-opacity:.1;   
   opacity:0.1;   
}  
這裡關鍵的是

CSS代碼
filter: Alpha(opacity=10);   
   -moz-opacity:.1;   
   opacity:0.1;  
這三句,第一句是ie 支援.第二三句是firefox支援的,但是版本不一樣就有兩種了,所以用時候把三句都加上就行了

相關文章

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.