引导网格堆叠到水平网格
您可以尝试运行以下代码以在Bootstrap中创建堆叠到水平网格的网格-
示例
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<script src = "/scripts/jquery.min.js"></script>
<script src = "/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class = "container">
<h1>Grid</h1>
<div class = "row">
<div class = "col-sm-6" style = "background-color:blue; color: white">
This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.
</div>
<div class = "col-sm-6" style = "background-color:red; color: white">
This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.
</div>
</div>
</div>
</body>
</html>热门推荐
10 幼儿老师过年简短祝福语
11 新年祝同学祝福语简短
12 新婚祝福语大全简短经典
13 祝福语女友文案简短霸气
14 小清新的祝福语简短
15 班级群毕业祝福语简短
16 结婚祝福语亲姐姐简短
17 诗意新婚祝福语高级简短
18 对同事简短生日祝福语