引导程序中的偏移列
偏移量用于将列推入更多的空间。要在大型显示器上使用偏移量,请使用.col-md-offset-*类。
您可以尝试运行以下代码以了解如何在Bootstrap中使用offset列-
示例
<!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 = "box">
<h1>Heading One</h1>
<div class = "row" >
<div class = "col-xs-6 col-md-offset-3" style = "background-color: #dedef8;
box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
<p>This is demo text. This is demo text.</p>
</div>
</div>
</div>
</body>
</html>热门推荐
10 钱包祝福语简短10字
11 5岁宝宝祝福语简短
12 离别简短的祝福语大全
13 发廊元旦祝福语大全简短
14 国庆中秋祝福语简短搞笑
15 生日牌祝福语英语简短
16 祖国七十华诞简短祝福语
17 周年庆典祝福语致辞简短
18 班级集体生日祝福语简短