bootstrap前端练习
bootstrap是一种响应式的布局,其框架能具有强大的美化功能,
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<link href="bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
<script src="bootstrap-3.3.7/js/jquery-3.1.1.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="bootstrap-3.3.7/js/bootstrap.min.js"></script>
<title>Title</title>
<style>
body{
collapse: 0;
}
/* #leftdiv {float: left; width: 33%}
#middlediv { float: left;width: 33%}
#rightdiv {float: left; width: 33%;}*/
</style>
</head>
<body>
<!--导航条-->
<nav class="navbar navbar-inverse navbar-fixed-top" style="margin-bottom: 0;">
<div class="container-fluid container">
<!-- 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>
<a class="navbar-brand" href="#">bootstap练习</a>
</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="#">简介 <span class="sr-only">(current)</span></a></li>
<li><a href="#">综述</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 role="separator" class="divider"></li>
<li><a href="#">ios学院</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">android学院</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">UI学院</a></li>
</ul>
</li>
<li><a href="#" data-toggle="modal" data-target="#myModal">关于</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<!--模态框-->
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">关于广州粤嵌</h4>
</div>
<div class="modal-body">
<p>广州粤嵌科技集团,是一家从事高级IT人才培训的教育公司。广州粤嵌科技集团,是一家从事高级IT人才培训的教育公司。广州粤嵌科技集团,是一家从事高级IT人才培训的教育公司。广州粤嵌科技集团,是一家从事高级IT人才培训的教育公司。广州粤嵌科技集团,是一家从事高级IT人才培训的教育公司。</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary">MK</button>
</div>
</div>
</div>
</div>
<!--轮播图-->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel"style="margin-bottom: 20px;">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="image/nav_01.jpg" alt="图片飞了">
</div>
<div class="item">
<img src="image/nav_02.jpg" alt="图片飞了">
</div>
<div class="item">
<img src="image/nav_03.jpg" alt="图片飞了">
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<!-- 栅格系统 -->
<div class="row" style="text-align: center">
<div class="col-lg-4 col-xs-12">
<img src="image/apple.png" alt="图片飞了" style="width: 30%"><br><br>
<p style="font-size: 30px">iOS学院</p>
<p style="font-size: 15px">iOS学院又称大神学员,学院的每一个学生都非常牛逼。</p><br>
<button type="button" class="btn btn-danger">立即咨询</button>
</div>
<div class="col-lg-4 col-xs-12">
<img src="image/java.png" alt="图片飞了" style="width: 30%"><br><br>
<p style="font-size: 30px">Java学院</p>
<p style="font-size: 15px">Java学院,学院的每一个学生也都非常牛逼。</p><br>
<button type="button" class="btn btn-danger">立即咨询</button>
</div>
<div class="col-lg-4 col-xs-12">
<img src="image/web.png" alt="图片飞了" style="width: 30%"><br><br>
<p style="font-size: 30px">Web学院</p>
<p style="font-size: 15px">Web学院,学院的每一个学生也都非常牛逼。</p><br>
<button type="button" class="btn btn-danger" >立即咨询</button>
</div>
</div>
<!--标签页-->
<div>
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#java" aria-controls="home" role="tab" data-toggle="tab">Java学院</a></li>
<li role="presentation"><a href="#ios" aria-controls="profile" role="tab" data-toggle="tab">iOS学院</a></li>
<li role="presentation"><a href="#ui" aria-controls="messages" role="tab" data-toggle="tab">UI学院</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content" style="text-align: center">
<div role="tabpanel" class="tab-pane active" id="ios">
<div class="row">
<div class="col-lg-7" style="margin-top: 115px;">
<span style="color: #ff0000;font-size: 36px;">iOS学院</span><span
style="font-size: 22px;color:#808080">史上最具逼格</span>
<p style="font-size: 22px; text-align: left;text-indent: 50px; margin-top: 20px;">
iOS学院,又称大神学院,学院内优秀学员比比皆是,不断挑战着业界薪资神话。学院的每一个学生都十分的牛逼,他们的梦想是用"指尖改变世界",励志做"中国的乔布斯"。
</p>
</div>
<div class="col-lg-5">
<img src="image/safari-logo.jpg">
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="java">
<div class="row">
<div class="col-lg-5">
<img src="image/firefox-logo.jpg">
</div>
<div class="col-lg-7" style="margin-top: 115px;">
<span style="color: #ff0000;font-size: 36px;">Java学院</span><span
style="font-size: 22px;color:#808080">史上最具实力</span>
<p style="font-size: 22px; text-align: left;text-indent: 50px; margin-top: 20px;">
Java学院,学院的每一个学生也很牛逼,他们的梦想是通过代码改变自己,终极目标:"瞬间高富帅,赢取白富美"。
</p>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="ui">
<div class="row">
<div class="col-lg-7" style="margin-top: 115px;">
<span style="color: #ff0000;font-size: 36px;">UI设计学院</span><span
style="font-size: 22px;color:#808080">史上最具美感</span>
<p style="font-size: 22px; text-align: left;text-indent: 50px; margin-top: 20px;">
UI学院,又称女神学院。学院每个学生的梦想是:设计出能改变世界的UI界面,成为其他两大学院男生心目中的女神。
</p>
</div>
<div class="col-lg-5">
<img src="image/ie-logo.jpg">
</div>
</div>
</div>
</div>
</div>
</body>
</html>
bootstrap
提取码:ft6m