基于Bootstrap的網(wǎng)頁設(shè)計(jì)實(shí)例
廢話不多說了,直接給大家貼代碼了,具體代碼如下所示:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>首頁菜單</title>
<link href="css/bootstrap.min.css" rel="external nofollow" rel="stylesheet">
<style type="text/css">
body{
padding-top: 50px;
padding-bottom: 50px;
}
.carousel{/* 滾動(dòng)圖片樣式 */
height: 500px;
background-color: #000;
margin-bottom: 60px;
}
.carousel .item{
height: 500px;
background-color: #000;
}
.carousel img{
width: 100%;
}
.carousel-caption p{
margin-bottom:20px;
font-size: 20px;
line-height: 1.8;
}
#summary-container .col-md-4{
text-align:center;/*居中對(duì)齊*/
}
hr.divder{
margin:40px 0;
}
.feature{
padding: 30px 0;
}
.feature-heading{
font-size:50px;
color:#2a6496;
margin-top:120px;
}
.feature-heading .text-muted{
font-size: 28px;
color:#999;
}
</style>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top navbar-inverse" role="navigation">
<div class="containe">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#demo-navbar">
<span class="sr-only">Toggle navigation</span><!-- Toggle navigation不能缺少 -->
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >現(xiàn)代瀏覽器博物館</a>
</div>
<!-- 導(dǎo)航欄 -->
<div class="collapse navbar-collapse" id="demo-navbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >綜述</a></li>
<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >簡(jiǎn)述</a></li>
<li class="dropdown">
<a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="dropdown-toggle" data-toggle="dropdown">特點(diǎn) <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#tab-chrome" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Chrome</a></li>
<li><a href="#tab-firefox" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Firefox</a></li>
<li><a href="#tab-safari" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Safari</a></li>
<!-- <li class="divider"></li> //divider:分隔符 -->
<li><a href="#tab-opera" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Opera</a></li>
<li><a href="#tab-ie" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >IE9</a></li>
</ul>
</li>
<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" data-toggle="modal" data-target="#about">關(guān)于</a></li>
<li>
</ul>
</div>
</div>
</nav>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<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>
<li data-target="#carousel-example-generic" data-slide-to="3"></li>
<li data-target="#carousel-example-generic" data-slide-to="4"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="images/chrome-big.jpg" alt="1 slide">
<div class="carousel-caption">
<h1>Chrome</h1>
<p>Google Chrome,又稱Google瀏覽器,是一個(gè)由Google(谷歌)公司開發(fā)的網(wǎng)頁瀏覽器</p>
<p><a class="btn btn-lg btn-primary" role="button" target="_blank">點(diǎn)擊下載</a></p>
</div>
</div>
<div class="item">
<img src="images/firefox-big.jpg" alt="2 slide" >
<div class="carousel-caption">
<h1>Firefox</h1>
<p>Mozilla Firefox,中文名通常稱為“火狐”或者“火狐瀏覽器”,是一個(gè)開源的網(wǎng)頁瀏覽器</p>
<p><a class="btn btn-lg btn-primary" role="button" target="_blank">點(diǎn)擊下載</a></p>
</div>
</div>
<div class="item">
<img src="images/safari-big.jpg" alt="3 slide" >
<div class="carousel-caption">
<h1>Safari</h1>
<p>Safari,是蘋果計(jì)算機(jī)的最新操作系統(tǒng)Mas OS X中的瀏覽器</p>
<p><a class="btn btn-lg btn-primary" role="button" target="_blank">點(diǎn)擊下載</a></p>
</div>
</div>
<div class="item">
<img src="images/opera-big.jpg" alt="4 slide" >
<div class="carousel-caption">
<h1>Opera</h1>
<p>Opera瀏覽器,是一款挪威Opera Software ASA公司制作的支持多頁面標(biāo)簽式的網(wǎng)絡(luò)瀏覽器</p>
<p><a class="btn btn-lg btn-primary" role="button" target="_blank">點(diǎn)擊下載</a></p>
</div>
</div>
<div class="item">
<img src="images/ie-logo.jpg" alt="5 slide" >
<div class="carousel-caption">
<h1>IE</h1>
<p>Internet Explorer,簡(jiǎn)稱IE,是微軟公司推出的一款網(wǎng)頁瀏覽器</p>
<p><a class="btn btn-lg btn-primary" role="button" target="_blank">點(diǎn)擊下載</a></p>
</div>
</div>
</div>
<a class="left carousel-control" href="#carousel-example-generic" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">上一頁</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">下一頁</span>
</a>
</div>
<div class="container" id="summary-container">
<div class="row">
<div class="col-md-4">
<img class="img-circle" src="images/chrome-logo-small.jpg" alt="chrome">
<h2>Chrome</h2>
<p>Google Chrome,又稱Google瀏覽器,是一個(gè)由Google(谷歌)公司開發(fā)的網(wǎng)頁瀏覽器</p>
<p><a class="btn btn-default" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="button">點(diǎn)擊下載</a></p>
</div>
<div class="col-md-4">
<img class="img-circle" src="images/firefox-logo-small.jpg" alt="chrome">
<h2>Firefox</h2>
<p>Mozilla Firefox,中文名通常稱為“火狐”或者“火狐瀏覽器”,是一個(gè)開源的網(wǎng)頁瀏覽器</p>
<p><a class="btn btn-default" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="button">點(diǎn)擊下載</a></p>
</div>
<div class="col-md-4">
<img class="img-circle" src="images/safari-logo-small.jpg" alt="chrome">
<h2>Safari</h2>
<p>Safari,是蘋果計(jì)算機(jī)的最新操作系統(tǒng)Mas OS X中的瀏覽器</p>
<p><a class="btn btn-default" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="button">點(diǎn)擊下載</a></p>
</div>
</div>
<hr class="divder">
<ul class="nav nav-tabs" role="tablist" id="tab-list">
<li class="active"><a href="#tab-chrome" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="tab" data-toggle="tab">Chrome</a></li>
<li><a href="#tab-firefox" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="tab" data-toggle="tab">Firefox</a></li>
<li><a href="#tab-safari" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="tab" data-toggle="tab">Safari</a></li>
<li><a href="#tab-opera" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="tab" data-toggle="tab">Opera</a></li>
<li><a href="#tab-ie" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="tab" data-toggle="tab">IE</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab-chrome">
<div class="row feature">
<div class="col-md-7">
<h2 class="feature-heading">Google Chrome <span class="text-muted">使用最廣泛的瀏覽器</span></h2>
<p class="lead">Google Chrome,又稱Google瀏覽器,是一個(gè)由Google(谷歌)公司開發(fā)的網(wǎng)頁瀏覽器。
該瀏覽器是基于其他開源軟件撰寫,包括Webkit,目標(biāo)是提升穩(wěn)定性,速度和安全性,并創(chuàng)造出簡(jiǎn)單且有效率的使用這界面
</p>
</div>
<div class="col-md-5">
<img class="feature-image img-responsive" src="images/chrome-logo.jpg">
</div>
</div>
</div>
<div class="tab-pane" id="tab-firefox">
<div class="row feature">
<div class="col-md-7">
<h2 class="feature-heading">Mozilla Firefox<span class="text-muted">燃燒的狐貍</span></h2>
<p class="lead">Mozilla Firefox,中文名稱為“火狐”或“火狐瀏覽器”,是一個(gè)開源網(wǎng)頁瀏覽器,使用Gecko引擎(非ie內(nèi)核),支持多種操作系統(tǒng)如window、Mac和linux。</p>
</div>
<div class="col-md-5">
<img class="feature-image img-responsive" src="images/firefox-logo.jpg">
</div>
</div>
</div>
<div class="tab-pane" id="tab-safari">
<div class="row feature">
<div class="col-md-7">
<h2 class="feature-heading">Safari<span class="text-muted">Mac用戶首先</span></h2>
<p class="lead">Safari,是蘋果計(jì)算機(jī)的最新操作系統(tǒng)Mac OS X中的瀏覽器,使用了KDE的KHTML作為瀏覽器的運(yùn)算核心。Safari在2003年1月7日首度發(fā)行測(cè)試版,并成為Mac OS X v10.3與之后的默認(rèn)瀏覽器,也是iPhone與TPAD和iPod touch的指定瀏覽器。</p>
</div>
<div class="col-md-5">
<img class="feature-image img-responsive" src="images/safari-logo.jpg">
</div>
</div>
</div>
<div class="tab-pane" id="tab-opera">
<div class="row feature">
<div class="col-md-5">
<img class="feature-image img-responsive" src="images/opera-logo.jpg">
</div>
<div class="col-md-7">
<h2 class="feature-heading">Opera<span class="text-muted">小眾但易用</span></h2>
<p class="lead">Opera瀏覽器,是一款挪威Opera Software ASA公司制作的支持多也頁面標(biāo)簽式瀏覽的網(wǎng)絡(luò)瀏覽器。是跨平臺(tái)瀏覽器可以在windowns,Mac和Linux三個(gè)操作系統(tǒng)平臺(tái)上運(yùn)行。</p>
</div>
</div>
</div>
<div class="tab-pane" id="tab-ie">
<div class="row feature">
<div class="col-md-5">
<img class="feature-image img-responsive" src="images/ie-logo.jpg">
</div>
<div class="col-md-7">
<h2 class="feature-heading">IE<span class="text-muted">老招牌</span></h2>
<p class="lead">Internet Explorer,原稱Microsoft Internet Explorer(7,8,9,10版本),簡(jiǎn)稱IE,是美國微軟公司推出的一款網(wǎng)頁瀏覽器。它采用的排版引擎(內(nèi)核)為Trident</p>
</div>
</div>
</div>
</div>
<hr class="divider">
<footer>
<p class="pull-right"><a href="#top" rel="external nofollow" rel="external nofollow" >回到頂部</a></p>
<div id="time"></div>
</footer>
</div>
<!-- 彈框 -->
<div class="modal fade" id="about">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header"><!-- 頭部 -->
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<h4 class="modal-title">關(guān)于</h4>
</div>
<div class="modal-body"><!-- 內(nèi)容 -->
<p>網(wǎng)站基于Bootstrap開發(fā);設(shè)計(jì)風(fēng)格簡(jiǎn)單清爽!內(nèi)容是關(guān)于當(dāng)今主流瀏覽器介紹,并附有下載資源。</p>
</div>
<div class="modal-footer"><!-- 底部 -->
<button type="button" class="btn btn-default" data-dismiss="modal">了解</button>
<!-- <button type="button" class="btn btn-primary">Save changes</button> -->
</div>
</div>
</div>
</div>
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
<script>
document.getElementById('time').innerHTML=new Date().toLocaleString();
setInterval("document.getElementById('time').innerHTML=new Date().toLocaleString();",1000);
$(document).ready(function(){
$("#demo-navbar .dropdown-menu a").click(function(){
var href=$(this).attr("href");
$("#tab-list a[href='"+href+"']").tab("show");
});
});
</script>
</html>
導(dǎo)航及下拉菜單制作
<nav class="navbar navbar-default navbar-fixed-top navbar-inverse" role="navigation">
<div class="containe">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#demo-navbar">
<span class="sr-only">Toggle navigation</span><!-- Toggle navigation不能缺少 -->
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >現(xiàn)代瀏覽器博物館</a>
</div>
<!-- 導(dǎo)航欄 -->
<div class="collapse navbar-collapse" id="demo-navbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >綜述</a></li>
<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >簡(jiǎn)述</a></li>
<li class="dropdown">
<a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="dropdown-toggle" data-toggle="dropdown">特點(diǎn) <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#tab-chrome" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Chrome</a></li>
<li><a href="#tab-firefox" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Firefox</a></li>
<li><a href="#tab-safari" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Safari</a></li>
<!-- <li class="divider"></li> //divider:分隔符 -->
<li><a href="#tab-opera" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Opera</a></li>
<li><a href="#tab-ie" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >IE9</a></li>
</ul>
</li>
<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" data-toggle="modal" data-target="#about">關(guān)于</a></li>
<li>
</ul>
</div>
</div>
</nav>
滾動(dòng)圖片廣告
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<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>
<li data-target="#carousel-example-generic" data-slide-to="3"></li>
<li data-target="#carousel-example-generic" data-slide-to="4"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="images/chrome-big.jpg" alt="1 slide">
<div class="carousel-caption">
<h1>Chrome</h1>
<p>Google Chrome,又稱Google瀏覽器,是一個(gè)由Google(谷歌)公司開發(fā)的網(wǎng)頁瀏覽器</p>
<p><a class="btn btn-lg btn-primary" role="button" target="_blank">點(diǎn)擊下載</a></p>
</div>
</div>
<div class="item">
<img src="images/firefox-big.jpg" alt="2 slide" >
<div class="carousel-caption">
<h1>Firefox</h1>
<p>Mozilla Firefox,中文名通常稱為“火狐”或者“火狐瀏覽器”,是一個(gè)開源的網(wǎng)頁瀏覽器</p>
<p><a class="btn btn-lg btn-primary" role="button" target="_blank">點(diǎn)擊下載</a></p>
</div>
</div>
<div class="item">
<img src="images/safari-big.jpg" alt="3 slide" >
<div class="carousel-caption">
<h1>Safari</h1>
<p>Safari,是蘋果計(jì)算機(jī)的最新操作系統(tǒng)Mas OS X中的瀏覽器</p>
<p><a class="btn btn-lg btn-primary" role="button" target="_blank">點(diǎn)擊下載</a></p>
</div>
</div>
<div class="item">
<img src="images/opera-big.jpg" alt="4 slide" >
<div class="carousel-caption">
<h1>Opera</h1>
<p>Opera瀏覽器,是一款挪威Opera Software ASA公司制作的支持多頁面標(biāo)簽式的網(wǎng)絡(luò)瀏覽器</p>
<p><a class="btn btn-lg btn-primary" role="button" target="_blank">點(diǎn)擊下載</a></p>
</div>
</div>
<div class="item">
<img src="images/ie-logo.jpg" alt="5 slide" >
<div class="carousel-caption">
<h1>IE</h1>
<p>Internet Explorer,簡(jiǎn)稱IE,是微軟公司推出的一款網(wǎng)頁瀏覽器</p>
<p><a class="btn btn-lg btn-primary" role="button" target="_blank">點(diǎn)擊下載</a></p>
</div>
</div>
</div>
<a class="left carousel-control" href="#carousel-example-generic" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">上一頁</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">下一頁</span>
</a>
</div>
柵格布局
<div class="row"> <div class="col-md-4"> <img class="img-circle" src="images/chrome-logo-small.jpg" alt="chrome"> <h2>Chrome</h2> <p>Google Chrome,又稱Google瀏覽器,是一個(gè)由Google(谷歌)公司開發(fā)的網(wǎng)頁瀏覽器</p> <p><a class="btn btn-default" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="button">點(diǎn)擊下載</a></p> </div> <div class="col-md-4"> <img class="img-circle" src="images/firefox-logo-small.jpg" alt="chrome"> <h2>Firefox</h2> <p>Mozilla Firefox,中文名通常稱為“火狐”或者“火狐瀏覽器”,是一個(gè)開源的網(wǎng)頁瀏覽器</p> <p><a class="btn btn-default" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="button">點(diǎn)擊下載</a></p> </div> <div class="col-md-4"> <img class="img-circle" src="images/safari-logo-small.jpg" alt="chrome"> <h2>Safari</h2> <p>Safari,是蘋果計(jì)算機(jī)的最新操作系統(tǒng)Mas OS X中的瀏覽器</p> <p><a class="btn btn-default" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" role="button">點(diǎn)擊下載</a></p> </div> </div>
標(biāo)簽頁
<div class="tab-content">
<div class="tab-pane active" id="tab-chrome">
<div class="row feature">
<div class="col-md-7">
<h2 class="feature-heading">Google Chrome <span class="text-muted">使用最廣泛的瀏覽器</span></h2>
<p class="lead">Google Chrome,又稱Google瀏覽器,是一個(gè)由Google(谷歌)公司開發(fā)的網(wǎng)頁瀏覽器。
該瀏覽器是基于其他開源軟件撰寫,包括Webkit,目標(biāo)是提升穩(wěn)定性,速度和安全性,并創(chuàng)造出簡(jiǎn)單且有效率的使用這界面
</p>
</div>
<div class="col-md-5">
<img class="feature-image img-responsive" src="images/chrome-logo.jpg">
</div>
</div>
</div>
<div class="tab-pane" id="tab-firefox">
<div class="row feature">
<div class="col-md-7">
<h2 class="feature-heading">Mozilla Firefox<span class="text-muted">燃燒的狐貍</span></h2>
<p class="lead">Mozilla Firefox,中文名稱為“火狐”或“火狐瀏覽器”,是一個(gè)開源網(wǎng)頁瀏覽器,使用Gecko引擎(非ie內(nèi)核),支持多種操作系統(tǒng)如window、Mac和linux。</p>
</div>
<div class="col-md-5">
<img class="feature-image img-responsive" src="images/firefox-logo.jpg">
</div>
</div>
</div>
<div class="tab-pane" id="tab-safari">
<div class="row feature">
<div class="col-md-7">
<h2 class="feature-heading">Safari<span class="text-muted">Mac用戶首先</span></h2>
<p class="lead">Safari,是蘋果計(jì)算機(jī)的最新操作系統(tǒng)Mac OS X中的瀏覽器,使用了KDE的KHTML作為瀏覽器的運(yùn)算核心。Safari在2003年1月7日首度發(fā)行測(cè)試版,并成為Mac OS X v10.3與之后的默認(rèn)瀏覽器,也是iPhone與TPAD和iPod touch的指定瀏覽器。</p>
</div>
<div class="col-md-5">
<img class="feature-image img-responsive" src="images/safari-logo.jpg">
</div>
</div>
</div>
<div class="tab-pane" id="tab-opera">
<div class="row feature">
<div class="col-md-5">
<img class="feature-image img-responsive" src="images/opera-logo.jpg">
</div>
<div class="col-md-7">
<h2 class="feature-heading">Opera<span class="text-muted">小眾但易用</span></h2>
<p class="lead">Opera瀏覽器,是一款挪威Opera Software ASA公司制作的支持多也頁面標(biāo)簽式瀏覽的網(wǎng)絡(luò)瀏覽器。是跨平臺(tái)瀏覽器可以在windowns,Mac和Linux三個(gè)操作系統(tǒng)平臺(tái)上運(yùn)行。</p>
</div>
</div>
</div>
<div class="tab-pane" id="tab-ie">
<div class="row feature">
<div class="col-md-5">
<img class="feature-image img-responsive" src="images/ie-logo.jpg">
</div>
<div class="col-md-7">
<h2 class="feature-heading">IE<span class="text-muted">老招牌</span></h2>
<p class="lead">Internet Explorer,原稱Microsoft Internet Explorer(7,8,9,10版本),簡(jiǎn)稱IE,是美國微軟公司推出的一款網(wǎng)頁瀏覽器。它采用的排版引擎(內(nèi)核)為Trident</p>
</div>
</div>
</div>
</div>
彈出框制作
<div class="modal fade" id="about">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header"><!-- 頭部 -->
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<h4 class="modal-title">關(guān)于</h4>
</div>
<div class="modal-body"><!-- 內(nèi)容 -->
<p>網(wǎng)站基于Bootstrap開發(fā);設(shè)計(jì)風(fēng)格簡(jiǎn)單清爽!內(nèi)容是關(guān)于當(dāng)今主流瀏覽器介紹,并附有下載資源。</p>
</div>
<div class="modal-footer"><!-- 底部 -->
<button type="button" class="btn btn-default" data-dismiss="modal">了解</button>
<!-- <button type="button" class="btn btn-primary">Save changes</button> -->
</div>
</div>
</div>
</div>
底部設(shè)計(jì)
<footer> <p class="pull-right"><a href="#top" rel="external nofollow" rel="external nofollow" >回到頂部</a></p> <div id="time"></div> <footer>
JS腳本
<script>
document.getElementById('time').innerHTML=new Date().toLocaleString();
setInterval("document.getElementById('time').innerHTML=new Date().toLocaleString();",1000);
$(document).ready(function(){
$("#demo-navbar .dropdown-menu a").click(function(){
var href=$(this).attr("href");
$("#tab-list a[href='"+href+"']").tab("show");
});
});
</script>
<nav class="navbar navbar-default navbar-fixed-top navbar-inverse" role="navigation">
<div class="containe">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#demo-navbar">
<span class="sr-only">Toggle navigation</span><!-- Toggle navigation不能缺少 -->
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >現(xiàn)代瀏覽器博物館</a>
</div>
<!-- 導(dǎo)航欄 -->
<div class="collapse navbar-collapse" id="demo-navbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >綜述</a></li>
<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >簡(jiǎn)述</a></li>
<li class="dropdown">
<a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="dropdown-toggle" data-toggle="dropdown">特點(diǎn) <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#tab-chrome" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Chrome</a></li>
<li><a href="#tab-firefox" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Firefox</a></li>
<li><a href="#tab-safari" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Safari</a></li>
<!-- <li class="divider"></li> //divider:分隔符 -->
<li><a href="#tab-opera" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Opera</a></li>
<li><a href="#tab-ie" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >IE9</a></li>
</ul>
</li>
<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" data-toggle="modal" data-target="#about">關(guān)于</a></li>
<li>
</ul>
</div>
</div>
</nav>
以上所述是小編給大家介紹的基于Bootstrap的網(wǎng)頁設(shè)計(jì)實(shí)例,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!
相關(guān)文章
基于JS實(shí)現(xiàn)小區(qū)樓的電梯運(yùn)行程序
本文介紹了如何使用JavaScript實(shí)現(xiàn)一個(gè)簡(jiǎn)單的小區(qū)樓電梯運(yùn)行程序,用戶可以通過點(diǎn)擊樓層來選擇目標(biāo)樓層,并模擬電梯的上下行,文章還提示了如何擴(kuò)展該程序,例如添加更多樓層、優(yōu)化移動(dòng)邏輯和添加動(dòng)畫效果,感興趣的朋友一起看看吧2025-01-01
JavaScript前端實(shí)現(xiàn)頁面白屏檢測(cè)與解決
白屏通常指的是頁面打開后,瀏覽器上面的地址欄已經(jīng)顯示完整的?URL,但是頁面內(nèi)容無法渲染,只有白色的空白頁面,下面我們就來看看白屏出現(xiàn)的具體原因與解決方法吧2025-03-03
純js實(shí)現(xiàn)頁面返回頂部的動(dòng)畫(超簡(jiǎn)單)
下面小編就為大家?guī)硪黄僯s實(shí)現(xiàn)頁面返回頂部的動(dòng)畫(超簡(jiǎn)單)。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2017-08-08
H5實(shí)現(xiàn)手機(jī)拍照和選擇上傳功能
這篇文章主要為大家詳細(xì)介紹了H5實(shí)現(xiàn)手機(jī)拍照和選擇上傳功能,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2019-12-12
使用forEach和ES6實(shí)現(xiàn)tab切換的示例代碼
tab切換在很多菜單欄中都可以用到,本文主要介紹了使用forEach和ES6實(shí)現(xiàn)tab切換的示例代碼,文中通過示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2022-04-04
JavaScript知識(shí)點(diǎn)總結(jié)(五)之Javascript中兩個(gè)等于號(hào)(==)和三個(gè)等于號(hào)(===)的區(qū)別
這篇文章主要介紹了JavaScript知識(shí)點(diǎn)總結(jié)(五)之Javascript中兩個(gè)等于號(hào)(==)和三個(gè)等于號(hào)(===)的區(qū)別的相關(guān)資料,需要的朋友可以參考下2016-05-05
JavaScript根據(jù)CSS的Media Queries來判斷瀏覽設(shè)備的方法
這篇文章主要介紹了JavaScript根據(jù)CSS的Media Queries來判斷瀏覽設(shè)備的方法,主要思路是通過CSS Media Queries改變一個(gè)類的某個(gè)屬性值(例如 z-index),然后用JavaScript讀取判斷,需要的朋友可以參考下2016-05-05
JavaScript設(shè)計(jì)模式學(xué)習(xí)之適配器模式
這篇文章主要介紹了JavaScript設(shè)計(jì)模式之適配器模式,對(duì)設(shè)計(jì)模式不熟悉的同學(xué),可以參考學(xué)習(xí)一下2021-04-04

