在chrome中拖拽元素,鼠标会变为文本的样子,设置css的cursor无济于事。
解决方案是:
ele.onselectstart=function(e){
e.preventDefault();
e.stopPropagation();
}
路漫漫其修远兮
在chrome中拖拽元素,鼠标会变为文本的样子,设置css的cursor无济于事。
解决方案是:
ele.onselectstart=function(e){
e.preventDefault();
e.stopPropagation();
}
要发表评论,您必须先登录。
近期评论