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