使用方法:
1、head引入css文件
<!--图标库-->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.1/css/all.min.css">
<!--主要样式-->
<link rel="stylesheet" type="text/css" href="css/style.css" />
2、body引入HTML代码
<div class="wrapper">
<ui class="mainMenu">
<li class="item" id="account">
<a href="#account" class="btn"><i class="fas fa-user-circle"></i>我的帐户</a>
<div class="subMenu">
<a href="">item-1</a>
<a href="">item-2</a>
<a href="">item-3</a>
</div>
</li>
<li class="item" id="about">
<a href="#about" class="btn"><i class="fas fa-address-card"></i>关于我们</a>
<div class="subMenu">
<a href="">item-1</a>
<a href="">item-2</a>
</div>
</li>
<li class="item" id="support">
<a href="#support" class="btn"><i class="fas fa-info"></i>技术支持</a>
<div class="subMenu">
<a href="">item-1</a>
</div>
</li>
<li class="item">
<a href="#" class="btn"><i class="fas fa-sign-out-alt"></i>退出登录</a>
</li>
</ui>
</div>