CSS3 RGBA ??
CSS3? RGBA ?? ?? ?? ??? ??:
? ???? RGBA ?? ?? ???? ?????. ?? ??? RGB? ?? ???? ?????. ??? ?? A? ?????.
?? ??:
RGBA(R,G,B,A)
???? ??:
R(red ): ??? ?. ?? ?? |
G(??): ?? ????. ?? ?? |
B(???): ??? ?. ?? ?? |
A(??): ?? ???, 0?? 1 ??? ?.
RGBA? RGB? ???? ?? ???? ???? ??????? ?????. R, G, B ? ?? ????? ?? ?? ?? 0~255??, ??? ?? 0.0%~100.0%???. ?? ?? ?? ?? ??? ? ????, ???? A? ?? 0? 1 ?????. ?? ????? ??? ???? ?? ???? ?? ???? ?? ???? ?? ?????.
???? ???:
RGBA ??? ???? ? ????. IE8 ? IE8 ?? ??????? ???? ???, ?? ?? ??????? ?????.
?? ?:
<!DOCTYPE html> <html> <head> <meta charset=" utf-8"> <meta name="author" content="http://ask.php.cn/" /> <title>CSS3教程</title> <style type="text/css"> .first{color:rgba(128,128,128,0.2);} .second{color:rgba(50%,50%,50%,0.3);} .third{color:rgba(160,100,150,0.6);} </style> </head> <body> <div class="first">php中文網(wǎng)歡迎您</div> <div class="second">php中文網(wǎng)歡迎您</div> <div class="third">php中文網(wǎng)歡迎您</div> </body> </html>