C
运行 »
×
下载代码
⇫
加载文件
改变主题,夜晚/白天
<!DOCTYPE html> <html> <head> <title> button background Color </title> <style> body{ text-align: center; } button { color:lightgoldenrodyellow; font-size: 30px; } .b1 { background-color: red; } .b2 { background-color: blue; } .b3 { background-color: violet; } </style> </head> <body> <h1>The background-color property.</h1> <button class="b1">Red color button</button> <button class="b2">Blue color button</button> <button class="b3">Violet color button</button> </body> </html>