代码实例
<!DOCTYPE HTML> <html> <head> <style type="text/css"> p { background-color: lightgray; } </style> </head> <body> <p>This is a test.<br/> This is a test.<br/> This is a test.<br/> This is a test.<br/> This is a test.<br/> This is a test.<br/> This is a test.<br/> This is a test.<br/> </p> </body> </html>
尝试一下 »
点击“尝试一下”按钮查看在线实例
我们可以使用 background-color
设置背景颜色。