验证中...
开源中国 2018 年度最后一场技术盛会邀你来约~错过就要等明年啦!点此立即预约
Bootstrap响应式布局
原始数据 复制代码
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!--BootStrap设计的页面支持响应式的 -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<!--整体div-->
<div class="container">
<!--导航栏-->
<div>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Java学院 <span class="sr-only">(current)</span></a></li>
<li><a href="#">IOS学院</a></li>
<li><a href="#">C++学院</a></li>
<li><a href="#">UI设计学院</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">全部学院 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Java学院</a></li>
<li><a href="#">IOS学院</a></li>
<li><a href="#">C++学院</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">UI设计学院</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">网络营销学院</a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-right" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
<!--信息展示-->
<div>
<div class="col-md-4 col-sm-6 col-xs-12">
<h2>WelCome</h2>
<p>WelCome to HeiMa!WelCome to HeiMa!WelCome to HeiMa!</p>
<p><a href="#" class="btn btn-primary pull-right">See More</a></p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<h2>Our Team</h2>
<p>Our Team,Our Team,Our Team,Our Team,Our Team,Our Team</p>
<p><a href="#" class="btn btn-primary pull-right">See More</a></p>
</div>
<div class="col-md-4 col-sm-12 col-xs-12">
<h2>About Us</h2>
<p>About Us,About Us,About Us,About Us,About Us,About Us</p>
<p><a href="#" class="btn btn-primary pull-right">See More</a></p>
</div>
</div>
</div>
</body>
</html>

评论列表( 0 )

你可以在登录后,发表评论

搜索帮助

12_float_left_people 12_float_left_close