欢迎您 本站地址:
复制网址
手机查看
切换背景
源代码:
html编辑器
颜色值转换
点击运行
Bootstrap5 实例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.staticfile.net/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.staticfile.net/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script> <div class="container mt-3"> <h1>Margin Left 与 Right 工具</h1> <p>Margin X utilities:</p> <div class="mx-0 bg-warning">Margin X 0</div> <div class="mx-1 bg-warning">Margin X 1</div> <div class="mx-2 bg-warning">Margin X 2</div> <div class="mx-3 bg-warning">Margin X 3</div> <div class="mx-4 bg-warning">Margin X 4</div> <div class="mx-5 bg-warning">Margin X 5</div> <div class="mx-auto bg-warning" style="width:150px">Margin X Auto</div> <br> <p>响应式 margin x 工具,重置浏览器大小查看效果。</p> <div class="mx-sm-5 bg-warning">Margin X 5 on SM screens</div> <div class="mx-md-5 bg-warning">Margin X 5 on MD screens</div> <div class="mx-lg-5 bg-warning">Margin X 5 on LG screens</div> <div class="mx-xl-5 bg-warning">Margin X 5 on XL screens</div> </div>
运行结果:
小库提示
扫描下方二维码,访问手机版。
打赏
关闭