DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> WEB網站前端 >> 網頁特效代碼 >> BootStrap自適應HTML模版之商城首頁
BootStrap自適應HTML模版之商城首頁
編輯:網頁特效代碼     
本特效支持PC浏覽器和觸屏浏覽器。

效果展示

手機掃描二維碼體驗效果:


HTML代碼如下:
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>BootStrap自適應HTML模版之商城首頁_何問起</title>
<base target="_blank" />
<link href="http://hovertree.com/ziyuan/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<script src="http://down.hovertree.com/jquery/jquery-1.12.4.min.js"></script>
<script src="http://hovertree.com/ziyuan/bootstrap/3.3.6/js/bootstrap.min.js"></script>

<style type="text/css">
.my-row {
margin: 15px auto;
}

.my-ul {
margin-top: 18px;
}

.my-nav {
margin-bottom: 3px;
}

.my-sming img {
height: 120px;
width: 120px;
}

.my-sming div {
height: 180px;
text-align: center;
}
</style>
</head>
<body>
<div class="container">
<div class="row my-row">
<div class="col-md-4 col-sm-6 col-xs-6">
<img src="http://hovertree.com/texiao/bootstrap/8/img/logo2.png" />
</div>
<div class="col-md-5 hidden-sm hidden-xs">
<img src="http://hovertree.com/texiao/bootstrap/8/img/header.jpg" />
</div>
<div class="col-md-3 col-sm-6 col-xs-6">
<ul class="list-inline my-ul">
<li><a href="http://hovertree.com/texiao/html5/12/">登錄</a></li>
<li><a href="http://hovertree.com/texiao/bootstrap/5/">注冊</a></li>
<li><a href="http://hovertree.com/menu/jquery/">購物車</a></li>
</ul>
</div>
</div>

<div class="row">
<!--導航條-->
<nav class="navbar navbar-inverse my-nav">
<div class="container-fluid">
<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="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

<a class="navbar-brand" href="http://hovertree.com/menu/bootstrap/" style="background-color: #000;">首頁</a>
</div>

<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="http://hovertree.com/menu/texiao/">手機數碼</a></li>
<li><a href="http://hovertree.com/menu/html5/">電腦辦公</a></li>
<li><a href="http://hovertree.com/menu/webfront/">服飾鞋帽</a></li>
<li><a href="http://hovertree.com/h/bjaf/yd5tssek.htm">原文</a></li>
<li><a href="http://hovertree.com/map/">......</a></li>
</ul>
<form class="navbar-form navbar-right" role="search">
<div class="form-group">
<input type="text" class="form-control" name="hovertree" placeholder="請輸入關鍵字">
</div>
<button type="submit" class="btn btn-default">搜索</button>
</form>

</div>
</div>
</nav>
</div>

<div class="row">
<!--輪播圖-->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel" data-interval="3000">
<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>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="http://hovertree.com/texiao/bootstrap/8/img/lbt01.jpg" alt="圖片不存在">
</div>
<div class="item">
<img src="http://hovertree.com/texiao/bootstrap/8/img/lbt02.jpg" alt="圖片不存在">
</div>
<div class="item">
<img src="http://hovertree.com/texiao/bootstrap/8/img/lbt03.jpg" alt="圖片不存在">
</div>
</div>

<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev" target="_self">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next" target="_self">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
</a>
</div>
</div>
</div>
</body>
</html>
XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved