相容好的css透明代碼

來源:互聯網
上載者:User

   從thinkcss架構中整理出來的CSs透明代碼,測試了下,對當前主流的Firefox、ie8、Opera以及Chrome的支援都不錯,本代碼是通過ie濾鏡,webkit等屬性,很好的解決了各個瀏覽器的透明問題,相信對大家有用處,以下是代碼:

  view sourceprint?1.transparent{

  2 filter:alpha(opacity=50);

  3 -moz-opacity:0.5;/** Firefox 3.5支援opacity屬性,所以本行只在Firefox3以下版本有效 ***/

  4 -khtml-opacity: 0.5; opacity: 0.5;

  5}

  6.break{ word-wrap:break-word;overflow:hidden; /*word-break:break-all;*/}

相關文章

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.