跨浏览器实现投影(box-shadow):
1 /* hack for ie */ 2 background: #fff; 3 4 /* sane web browsers */ 5 -moz-box-shadow:1px 3px 12px #bbb; 6 -webkit-box-shadow:1px 3px 12px #bbb; 7 box-shadow:1px 3px 12px #bbb; 8 9 /* gte ie8 */ 10 -ms-filter:"progid:DXImageTransform.Microsoft.Shadow(color=#eeeeee,direction=0,strength=6) progid:DXImageTransform.Microsoft.Shadow(color=#dddddd,direction=90,strength=10) progid:DXImageTransform.Microsoft.Shadow(color=#dddddd,direction=180,strength=10) progid:DXImageTransform.Microsoft.Shadow(color=#eeeeee,direction=270,strength=6)"; 11 12 /* lte ie7 */ 13 *filter: 14 progid:DXImageTransform.Microsoft.Shadow(color=#eeeeee,direction=0,strength=6) 15 progid:DXImageTransform.Microsoft.Shadow(color=#dddddd,direction=90,strength=10) 16 progid:DXImageTransform.Microsoft.Shadow(color=#dddddd,direction=180,strength=10) 17 progid:DXImageTransform.Microsoft.Shadow(color=#eeeeee,direction=270,strength=6);
时间: 2024-10-06 09:41:05