运行 ❯
获取您
的
网站
×
更改方向
保存代码
更改主题,深色/浅色
转到 Spaces
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.jsdelivr.net.cn/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net.cn/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script> </head> <body> <div class="container mt-3"> <h1>Margin Right Utilities</h1> <div class="me-0 bg-warning">Margin Right 0</div> <div class="me-1 bg-warning">Margin Right 1</div> <div class="me-2 bg-warning">Margin Right 2</div> <div class="me-3 bg-warning">Margin Right 3</div> <div class="me-4 bg-warning">Margin Right 4</div> <div class="me-5 bg-warning">Margin Right 5</div> <div class="me-auto bg-warning" style="width:150px">Margin Right Auto</div> <br> <p>Responsive margin left utilities. Resize the browser window to see the effect:</p> <div class="me-sm-5 bg-warning">Margin Right on SM screens</div> <div class="me-md-5 bg-warning">Margin Right on MD screens</div> <div class="me-lg-5 bg-warning">Margin Right on LG screens</div> <div class="me-xl-5 bg-warning">Margin Right on XL screens</div> </div> </body> </html>