Drag cursor in javascript?

后端 未结 2 429
时光取名叫无心
时光取名叫无心 2021-01-13 15:54

I need to set the drag cursor in some places but i can\' see listened here http://www.w3schools.com/cssref/pr_class_cursor.asp

In my case it apears when i drag some i

2条回答
  •  [愿得一人]
    2021-01-13 16:19

    You may be able to use the vendor-specific grab cursor, but I don't think the support is quite there yet. It might be best to use a custom icon or, as suggested by Chris B., the move cursor.

    .grab {
       cursor: url("http://www.example.com/openhand.cur") 8 8, move;
       cursor: -moz-grab;
       cursor: -webkit-grab;
    }
    
    .grabbing {
       cursor: url("http://www.example.com/closedhand.cur") 8 8, move;
       cursor: -moz-grabbing;
       cursor: -webkit-grabbing;
    }
    

提交回复
热议问题