<html><head><style>.button { border: none; color: white; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; cursor: pointer;}.button1 {background-color: #4CAF50;} /* Green */.button2 {background-color: #008CBA;} /* Blue */</style></head><body><h1>button 元素 - 使用 CSS 设置样式</h1><p>使用 background-color 属性更改按钮的背景颜色:</p><button class="button button1">绿色</button><button class="button button2">蓝色</button></body></html>