运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> div { background-color: lightgreen; inline-size: 300px; padding: 10px; direction: rtl; border-inline-start: 5px solid hotpink; } </style> </head> <body> <h2>border-inline-start and direction</h2> <div> <p>With direction property value set to 'rtl', the pink border at the start of the inline direction is on the right side.</p> </div> </body> </html>