Bootstrap4 – 菜单导航/多级导航/CSS3动画特效插件

Bootstrap4 – 菜单导航/多级导航/CSS3动画特效插件

Bootstrap4是一款比较炫酷的多级导航插件,这款插件在原生Bootstrap4扩展了navbar,多级的导航菜单,炫酷的css3效果,展示效果还是比较不错的。

这款Bootstrap4菜单导航引入了相关的jquery.min.js、bootstrap4和bootnavbar.css、bootnavbar.js、animate.css等多个文件。

Bootstrap4具体的使用方法:

<link rel="stylesheet" href="css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/bootnavbar.css"/>
<link rel="stylesheet" href="css/animate.css"/>
<script  src="js/jquery.min.js"></script>        
<script  src="js/bootstrap.min.js"></script>        
<script  src="js/bootnavbar.js"></script>

HTML结构
该导航菜单的HTML结构如下。

<nav class="navbar navbar-expand-lg navbar-light bg-light" id="main_navbar">
<class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><class="dropdown-item" href="#">Action</a></li>
<li><class="dropdown-item" href="#">Another action</a></li>
<div class="dropdown-divider"></div>
<li></li><class="dropdown-item" href="#">Something else here</a></li>
<li class="nav-item dropdown">
<class="dropdown-item dropdown-toggle" href="#" id="navbarDropdown1" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown1">
<li><class="dropdown-item" href="#">Action</a></li>
<li><class="dropdown-item" href="#">Another action</a></li>
<div class="dropdown-divider"></div>
<li></li><class="dropdown-item" href="#">Something else here</a></li>
<li class="nav-item dropdown">
<class="dropdown-item dropdown-toggle" href="#" id="navbarDropdown2" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown2">
<li><class="dropdown-item" href="#">Action</a></li>
<li><class="dropdown-item" href="#">Another action</a></li>
<div class="dropdown-divider"></div>
<li></li><class="dropdown-item" href="#">Something else here</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</nav>
当前内容只有[管理员、编辑]了才能查看,如果您已经注册,请登录

抱歉,评论已关闭!