所属分类:web前端开发
下面的示例显示了rgba颜色属性−
现场演示
<html> <head> <style> #p1 {background-color:rgba(255,0,0,0.3);} #p2 {background-color:rgba(0,255,0,0.3);} #p3 {background-color:rgba(0,0,255,0.3);} </style> </head> <body> <p>RGBA colors:</p> <p id = "p1">Red</p> <p id = "p2">Green</p> <p id = "p3">Blue</p> </body> </html>