dropdown.js
A dropdown menu component based on jQuery. demo
usage
Load dropdown.js in your html
<link rel="stylesheet" href="dropdown.css"> <script src="dropdown.js"></script>
Add dropdown menu content
<div class="dropdown"> <div class="more-btn"> 更多 <span class="triangle"></span> </div> <ul class="dropdown-menu"> <li> <a href="javascript:;">待处理订单</a> </li> <li> <a href="javascript:;">售后服务</a> </li> <li> <a href="javascript:;">我的关注</a> </li> </ul> </div>