如何为光标设置自己的图像

How to set own image for a cursor

如果我为 css 文件中的标签设置光标,如下所示,它会按预期工作。如果光标移动到 Label

上,则光标为 "wait-cursor"
Label.mylabel:hover {
    cursor: wait;
}

如 RWT-Theming-Reference 中所述,以下内容也应该可行

Label.mylabel:hover {
    cursor: url( resources/cursor.gif );
}

但是我看不到光标。
如何为光标设置自己的图像?

试试这个

label.mylabel:hover {
    cursor:url("resources/cursor.gif"), auto;
}

确保您提供的图片正确url。

原来有一个 bug in RAP that prevents custom cursors from being rendered. I'll provided a fix 可能会包含在 3.0.1 版本中。

更新:修复已合并并将在 3.1 M1 和 3.0.1 中可用。