html5网页响应式滑动侧边栏导航菜单特效



198 788 263



特效描述:html5 响应式滑动 侧边栏导航菜单,html5滑动侧边栏导航菜单特效

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/default.css">
<link href="css/offcanvas.min.css" rel="stylesheet" type="text/css">

2. 引入JS

<script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/offcanvas.js"></script>

3. HTML代码

<div class="overlay"></div>
<nav class="navbar navbar-inverse navbar-static-top">
  <div class="container">
	<div class="navbar-header">
	  <button type="button" class="navbar-toggle collapsed pull-left" data-toggle="offcanvas">
		<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="#">Bootstrap响应式导航菜单</a>
	</div>
	<div id="navbar" class="collapse navbar-collapse sidebar-offcanvas">
	  <ul class="nav navbar-nav">
		<li class="active"><a href="#">首页</a></li>
		<li><a href="#about">项目</a></li>
		<li><a href="#contact">关于我们</a></li>
	  </ul>
	</div><!--/.nav-collapse -->
  </div>
</nav>
<div class="container">
	<div class="row-offcanvas row-offcanvas-left">
		<div class="starter-template">
			<div class="row">
			  <div class="col-xs-6 col-md-3">
				<a href="#" class="thumbnail">
				  <img src="img/thumb-1.jpg" alt>
				</a>
			  </div>
			  <div class="col-xs-6 col-md-3">
				<a href="#" class="thumbnail">
				  <img src="img/thumb-2.jpg" alt>
				</a>
			  </div>
			  <div class="col-xs-6 col-md-3">
				<a href="#" class="thumbnail">
				  <img src="img/thumb-1.jpg" alt>
				</a>
			  </div>
			  <div class="col-xs-6 col-md-3">
				<a href="#" class="thumbnail">
				  <img src="img/thumb-2.jpg" alt>
				</a>
			  </div>
			</div>
			<div class="row">
			  <div class="col-xs-6 col-md-3">
				<a href="#" class="thumbnail">
				  <img src="img/thumb-1.jpg" alt>
				</a>
			  </div>
			  <div class="col-xs-6 col-md-3">
				<a href="#" class="thumbnail">
				  <img src="img/thumb-2.jpg" alt>
				</a>
			  </div>
			  <div class="col-xs-6 col-md-3">
				<a href="#" class="thumbnail">
				  <img src="img/thumb-1.jpg" alt>
				</a>
			  </div>
			  <div class="col-xs-6 col-md-3">
				<a href="#" class="thumbnail">
				  <img src="img/thumb-2.jpg" alt>
				</a>
			  </div>
			</div>
		</div>
	</div>
</div><!-- /.container -->



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滑动导航菜单 图片拖动 二级导航菜单 滑动选项卡切换 文字拖动 下拉导航菜单 图片滑动 拖动排序 竖直导航菜单 文字滑动 图标导航菜单 弹出层拖动 滑动手风琴 固定导航菜单 滑动星星打分 侧边导航菜单 树形导航菜单 网址导航菜单 导航菜单插件 文字导航菜单 滚动导航菜单 滑动导航菜单 浮动导航菜单 导航切换 右键菜单 收缩导航菜单 html5动画导航菜单 flash导航菜单 滑动滑过 拖动拽动 导航菜单导航条

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到