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