<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="dist/css/bootstrap.css"> <script src="jquery-3.2.1.js"></script> <script src="dist/js/bootstrap.js"></script> <title>栅格布局的列偏移</title> <style> .grid { border: 1px solid #696969; border-radius: 5px; background-color: lightskyblue; min-height: 30px; text-align: center; line-height: 30px; } .green { background-color: lightgreen; } .pink { background-color: lightpink; } </style> </head> <body> <div> <div> <div class="col-md-4 grid">.col-md-4</div> <div class="col-md-4 col-md-offset-4 grid">.col-md-4 .col-md-offset-4</div> </div> <div> <div class="col-md-3 col-md-offset-3 grid">.col-md-3 .col-md-offset-3</div> <div class="col-md-3 col-md-offset-3 grid">.col-md-3 .col-md-offset-3</div> </div> <div> <div class="col-md-6 col-md-offset-3 grid">.col-md-6 .col-md-offset-3</div> </div> </div> </body> </html>
以上就是Bootstrap栅格布局的列偏移实例的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号