运行 ❯
获取你
自己的
网站
×
更改方向
保存代码
更改主题,暗/亮
前往 Spaces
<!DOCTYPE html> <html> <head> <style> #parentDIV { position: relative; height: 250px; width: 60%; border: solid black 1px; } #myDIV { position: absolute; background-color: lightblue; width: 100%; inset-inline-start: 50px; writing-mode: vertical-rl; } </style> </head> <body> <h1>The inset-inline-start Property</h1> <p>Here, the inset-inline-start property is affected by the CSS writing-mode property.</p> <div id="parentDIV"> <div id="myDIV"> <p>This DIV has a distance of 50 pixels to parent from start of element, in the inline direction.</p> </div> </div> </body> </html>