运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 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-end: 10px; } .reddiv { background-color:rgba(239, 135, 88, 0.6); text-align: center; } </style> </head> <body> <h1>The margin-inline-end property</h1> <div id="myDIV"> <p>Red div elements are shown to highlight the inline margin at the end of the blue div element.</p> <div class="reddiv">div</div> <div class="bluediv"> Blue div element with different margin-inline-end values. </div> <div class="reddiv">div</div> </div> </body> </html>