更改拖动光标 [英] Change dragging cursor
本文介绍了更改拖动光标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在使用仅CSS进行拖动时更改光标?
div:active{
cursor:move;
}
这不会工作,因为它会被浏览器自动更改为 text
光标。那么如何?
This won't work because it will be automatically changed by the browser to a text
cursor when dragging. So how?
http:// jsfiddle。 net / nick_craver / uZ377 / 1 /
推荐答案
不知道是否真的解决了你的问题, a href =http://jsfiddle.net/garretruh/pJjd4/> http://jsfiddle.net/garretruh/pJjd4/ )似乎摆脱了文本选择光标,不使文本可选择所有。再次,您可能希望用户能够选择您的文字。
Not sure if it truly solves your problem, but this ( http://jsfiddle.net/garretruh/pJjd4/ ) seems get rid of the text-select cursor by not making text selectable at all. Then again, you might want users to be able to select your text.
这篇关于更改拖动光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文