更改ngclick上的鼠标指针 [英] Change the mouse pointer on ngclick

查看:63
本文介绍了更改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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆