/ Published in: CSS
URL: http://www.quirksmode.org/css/opacity.html
IE compatibility note
If you want opacity to work in all IE versions, use opaque4 class
Expand |
Embed | Plain Text
.test { background-color: #6374AB; width: 100%; color: #ffffff; } .opaque1 { /* for all other browsers */ opacity: .5; } .opaque2 { /* for IE5-7 */ filter: alpha(opacity=50); } .opaque3 { /* for IE8 */ -ms-filter:\"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)\"; } .opaque4 { -ms-filter:\"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)\"; /* first!*/ filter: alpha(opacity=50); /* second!*/ }
You need to login to post a comment.
