<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- 引入bootstrap.min.css-->
<link rel="stylesheet" href="../bootstrap-3.4.1-dist/css/bootstrap.min.css">
<!-- 引入jquery.min.js-->
<script src="../js/jquery.min.js"></script>
<!-- 引入bootstrap.min.js-->
<script src="../bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
<style>
div[class^="col-md"] {
border: 1px solid blue;
}
</style>
<title>Document</title>
</head>
<body style="background: #333333;">
<div class="container" style="background: #ffffff;">
<div class="row">
<div class="col-md-1">1</div>
<div class="col-md-1">2</div>
<div class="col-md-1">3</div>
<div class="col-md-1">4</div>
<div class="col-md-1">5</div>
<div class="col-md-1">6</div>
<div class="col-md-1">7</div>
<div class="col-md-1">8</div>
<div class="col-md-1">9</div>
<div class="col-md-1">10</div>
<div class="col-md-1">11</div>
<div class="col-md-1">12</div>
<div class="col-md-1">13</div>
<div class="col-md-1">14</div>
<div class="col-md-1">15</div>
<div class="col-md-1">16</div>
<div class="col-md-1">17</div>
<div class="col-md-1">18</div>
</div>
<div class="row">
<div class="col-md-2">22</div>
<div class="col-md-3">33</div>
<div class="col-md-7">77</div>
</div>
<div class="row">
<div class="col-md-6">66</div>
<div class="col-md-6">66</div>
</div>
</div>
</body>
</html>
【bootstrap】栅格系统
最新推荐文章于 2022-11-03 21:54:34 发布