运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 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-start: 50px; direction: rtl; } </style> </head> <body> <h1>The margin-inline-start Property</h1> <p>Here, the margin-inline-start 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 start of DIV elementin the inline direction.</div> <div>A div element with no specified margins.</div> </body> </html>