运行 ❯
获取您的
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> div { background-color: rgb(239, 135, 88); width: 25%; height: 200px; float: left; box-sizing: border-box; } #ex1 { background-color: lightblue; border: solid black 1px; margin-inline-end: 50px; direction: rtl; } </style> </head> <body> <h1>The margin-inline-end Property</h1> <p>Here, the margin-inline-end property is affected by the CSS direction property.</p> <div>A div element with no specified margins.</div> <div id="ex1">This DIV element has a margin of 50 pixels from the end of DIV elementin the inline direction.</div> <div>A div element with no specified margins.</div> </body> </html>