Angular 4利用mouseevent隐藏显示内容

代码片断如下, #53463d是背景色, 鼠标移动其上就将颜色改为白色,移开则隐藏。

[ngStyle]="{'color': '#53463d'}"          (mouseenter)="admin.style.color = 'white'"          (mouseleave)="admin.style.color = '#53463d'"

作者:simmone

来源:http://ju.outofmemory.cn/entry/330915

 

 


如果给你带来帮助,欢迎微信或支付宝扫一扫,赞一下。