html5 canvas hand cursor problems

后端 未结 3 1027
萌比男神i
萌比男神i 2020-12-15 08:16

I\'m playing around with html5 and some javascript to make a minor sketchpad. Whenever I click down on the canvas in chrome, the cursor becomes a text cursor. I have tried p

3条回答
  •  既然无缘
    2020-12-15 09:06

    Use pointer for your cursor property instead, like this:

    canvas { cursor: pointer; }
    

    hand is IE/Opera specific, you can see a full list of which cursors work in which browsers here.

提交回复
热议问题