typecho2017-06-30 10:01:54
这是adminlte的框架吧
原理就是用父节点的class来控制子节点的展示方式、
弹出的菜单就是你hover的子节点
https://adminlte.io/themes/Ad...
其实看看adminlte的代码就知道了
<li class="active treeview menu-open">
<a href="#">
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li><a href="index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
<li class="active"><a href="index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
</ul>
</li>