开发者

HTML - CSS: cross-browser semi-transparency

开发者 https://www.devze.com 2022-12-31 11:07 出处:网络
I\'ve to make the background of my fading-in menu items semi-transparent. It has to be grey but still I need to see what\'s b开发者_JAVA技巧elow it.

I've to make the background of my fading-in menu items semi-transparent.

It has to be grey but still I need to see what's b开发者_JAVA技巧elow it.

What's an easy cross-browser solution for semi-transparency ? (Possibly without using images)

thanks


selector {
    filter: alpha(opacity=50); /* internet explorer /
    -khtml-opacity: 0.5;      / khtml, old safari /
    -moz-opacity: 0.5;       / mozilla, netscape /
    opacity: 0.5;           / fx, safari, opera */
}

http://perishablepress.com/press/2009/01/27/cross-browser-transparency-via-css/


CSS Transparency Settings for All Browsers
http://css-tricks.com/css-transparency-settings-for-all-broswers/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号