您的位置:首页 > Web前端 > AngularJS

angular 鼠标移入移开元素显示或隐藏

2016-05-11 14:56 886 查看
<div class="col-md-12 itemtypebox"  ng-class="{'activedbackgroundcolor':showtimes}" ng-mouseenter="showtimes = true" ng-mouseleave="showtimes = false">
<span class="itemtype col-md-10" ng-bind="item.name"  ng-class="{'colorfff':showtimes}"></span>
<span class="itemtype col-md-2"><i class="fa fa-times colorfff" ng-show="showtimes"></i></span>
</div>
主要使用了ng-mouseenter与 ng-mouseleave 表示鼠标的移入移出
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: