如何在單擊我的圖標時顯示註銷按鈕?如何在「AngularJS」中單擊圖標時顯示「註銷按鈕」
home.html的:
<div class="icon-bar">
<div class="logout">
<img src="/Login/images/login.png" ng-model="logout">
<div class="check-element animate-hide" ng-show="logout">
<button>Logout</button>
</div>
<div class="check-element animate-hide" ng-hide="logout">
</div>
</div>
<div>
當我點擊該圖標,我想註銷按鈕出現像「下拉菜單」
我想把邏輯控制器。
對不起,我知道這是一件容易的事,但我全新的角度JS:/
的'dropdown'效果將在'CSS' – Weedoze
這裏做的是一個例子,下一次嘗試第一谷歌=)。 http://www.w3schools.com/angular/angular_select.asp 順便說一下,你正在尋找的效果與Angular無關。它是CSS或JavaScript或兩者兼而有之。 – Megajin