在悬停时将字体Awesome图标指定给光标

ps0*_*604 4 css css3 font-awesome

当我将鼠标悬停在div上时,我想使用Font Awesome图标之一作为光标/鼠标指针.这可能吗?这样的事情:

.myClass:hover {
    cursor: <--- here assign to the cursor the Font Awesome icon
} 
Run Code Online (Sandbox Code Playgroud)

war*_*en2 6

根据文档,实现自定义光标的唯一方法是使用cursor: url();

因此,标记@RicardoRuiz的答案:

  • 有人为png发电机创造了一个真棒
  • 下载.png图标,
  • 将其存储在项目资产目录中或在线 e.g. dropbox
  • 使用CSS cursor: url()将图标图像用作光标.