运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
转到 Spaces
<!DOCTYPE html> <html> <head> <style> h1 { border-bottom-style: solid; border-bottom-color: coral; } div { border-style: solid; border-bottom-color: coral; } </style> </head> <body> <h1>A heading with a colored bottom border</h1> <div>The border-bottom-color can be specified with a color name.</div> <p><strong>Note:</strong> Always declare the border-bottom-style or the border-style property before the border-bottom-color property. An element must have a border before you can change the color.</p> </body> </html>