執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> h1 { border-left-style: solid; border-left-color: hsl(89, 43%, 51%); } div { border-style: solid; border-left-color: hsl(89, 43%, 51%); } </style> </head> <body> <h1>A heading with a colored left border</h1> <div>The border-left-color can be specified with a HSL value.</div> <p><strong>Note:</strong> Always declare the border-left-style or the border-style property before the border-left-color property. An element must have a border before you can change the color.</p> </body> </html>