运行 ❯
获取你
自己的
网站
×
更改方向
保存代码
更改主题,暗色/亮色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> body { background-color:#E7E9EB; } #myDIV { height: 300px; background-color:#FFFFFF; } #myDIV > div { width: 20%; height: 150px; float: left; box-sizing: border-box; } .bluediv { background-color:rgba(182, 215, 229, 0.6); border: solid black 1px; margin-inline-start: 10px; } .reddiv { background-color:rgba(239, 135, 88, 0.6); text-align: center; } </style> </head> <body> <h1>The margin-inline-start property</h1> <div id="myDIV"> <p>Red div elements are shown to highlight the inline margin at the start of the blue div element.</p> <div class="reddiv">div</div> <div class="bluediv"> Blue div element with different margin-inline-start values. </div> <div class="reddiv">div</div> </div> </body> </html>