问题描述:

If I set the cursor for a Label in a css-file as shown below it works as expected. The cursor is a "wait-cursor" if it is moved over the Label

Label.mylabel:hover {

cursor: wait;

}

As it is described in the RWT-Theming-Reference the following should also be possible

Label.mylabel:hover {

cursor: url( resources/cursor.gif );

}

But I can not see my cursor.

How can I set an own image for a cursor?

网友答案:

Turns out that there is a bug in RAP that prevents custom cursors from being rendered. I'll provided a fix that will likely be included in the 3.0.1 release.

Update: the fix is merged and will be available in 3.1 M1 and 3.0.1.

网友答案:

Try this

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

Make sure that your are providing correct url for image.

相关阅读:
Top