【发布时间】:2013-11-02 20:41:26
【问题描述】:
我想为光标使用自定义图像。
这很好,但据我所见 - 默认情况下,原点(箭头的尖端)位于图像的左上角。
如何将原点设置为图像的中心。
这里有一个演示sn-p来演示问题
div {
width: 600px;
height: 100px;
background: pink;
cursor: url(http://placehold.it/50x30), auto
}
<div>the cat in the hat<br> the cat in the hat<br> the cat in the hat<br> the cat in the hat</div>
请注意,当我尝试选择文本时 - 它从图像的左上角选择。
【问题讨论】:
标签: css custom-cursor