更改 ngclick 上的鼠标指针 [英] Change the mouse pointer on ngclick
本文介绍了更改 ngclick 上的鼠标指针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 div
附有 Angular ng-click
指令.将鼠标悬停在此元素上时,鼠标指针不会改变.有没有办法通过CSS改变它?我知道我可以简单地将锚标记附加到它,但我想知道这是否可以做到.
I've a div
with the Angular ng-click
directive attached to it. On hovering over this element the mouse pointer doesn't change. Is there a way to change it through CSS? I know I can simply attach an anchor tag to it, but I would like to know if this can be done.
推荐答案
有没有办法通过css来改变它?
Is there a way to change it through css?
是的,请参阅cursor
.
Yes, see cursor
.
如果您只想使用 ng-click
属性定位元素,例如:
If you just wanted to target elements with the ng-click
attribute, for example:
[ng-click],
[data-ng-click],
[x-ng-click] {
cursor: pointer;
}
这篇关于更改 ngclick 上的鼠标指针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文