日期:2014-05-17 浏览次数:20646 次
<div id=”body”> <span><龙哥博客>解决CSS滤镜同时过滤文字的问题</span> </div>
<style type=”text/css”> #body{ border:1px solid #c00; background-color:rgba(212,0,0,0.5); background:#f00\9; filter:alpha(opacity=10); width:500px; margin:40px auto; line-height:200%; font-size:14px; padding:14px;} </style>
#body *{ position:relative;}
#body{ /** ie 6 & 7**/ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#550000FF, endColorstr=#550000FF); /** ie 8**/ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#550000FF, endColorstr=#550000FF)"; }
#body{ /** ie 6 & 7**/ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#550000FF, endColorstr=#550000FF); /** ie 8**/ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#550000FF, endColorstr=#550000FF)"; }