兼容IE8灰色遮罩層處理方法


rgba(0,0,0,0.6):IE8及以下版本的瀏覽器並不識別這種寫法

需要使用ie的filter來解決這個問題

<div style="height:100px;width:100px;rgba(0, 0, 0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);"></div> 

 

轉:http://moneyinto.iteye.com/blog/2237095

轉換IE Filter網站: https://kilianvalkhof.com/2010/css-html/how-to-use-rgba-in-ie/


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM