运行 ❯
获取您的
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> #parentDIV { width: 60%; } #parentDIV > div { writing-mode: vertical-rl; block-size: 100%; box-sizing: border-box; } .redDiv { background-color: rgb(239, 135, 88); inline-size: 10%; } #myDIV { background-color: lightblue; inline-size: 30%; border: solid black 1px; margin-inline-end: 50px; } </style> </head> <body> <h1>The margin-inline-end Property</h1> <p>Here, the margin-inline-end property is affected by the CSS writing-mode property.</p> <div id="parentDIV"> <div class="redDiv">div</div> <div id="myDIV"> <p>This DIV element has a margin of 50 pixels from the start of DIV elementin the inline direction.</p> </div> <div class="redDiv">div</div> </div> </body> </html>