运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,暗/亮
转到 Spaces
<!DOCTYPE html> <html> <head> <style> h1 { border-style: solid; border-color: rgb(201, 76, 76); } div { border-style: solid; border-color: rgb(201, 76, 76); } </style> </head> <body> <h1>A heading with a colored border</h1> <div>The border-color can be specified with an RGB value.</div> <p><strong>Note:</strong> The border-color property does not work if it is used alone. Use the border-style property to set the border first.</p> </body> </html>