@@ -20,4 +20,11 @@ html body {
.main {
background: #328dc7;
+}
+
+.logout_btn{
+ background: rgba(0,0,0,0);
+ border: none;
+ outline:none;
}
@@ -28,7 +28,7 @@ $(document).ready(function () {
$("#user").html(html);
- $("#user").on("click", function () {
+ $("#login_out_btn").on("click", function () {
layer.confirm('您确定要退出登录?', {
btn: ['确定'] //按钮
}, function () {
@@ -18,6 +18,10 @@
<li>
<p id="time_p" class="header_font"></p>
</li>
+ <li>
+ <button class="header_font logout_btn " id="login_out_btn"> <i class="icon icon-signout" style="font-size: 24px;"></i> </button>
+ </li>
</ul>
</div>