运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
转到 Spaces
<!DOCTYPE html> <html> <head> <style> div { border: 1px solid red; box-sizing: border-box; width: 300px; } div.ex1 { margin-bottom: 20px; padding-inline: 50px; } </style> </head> <body> <h1>The padding-inline Property</h1> <div class="ex1">This div element has a padding of 50 pixels at the start and end in the inline direction.</div> <div>This div element has no specified padding.</div> </body> </html>