在chrome中拖拽元素,鼠标会变为文本的样子,设置css的cursor无济于事。 解决方案是: ele.onselectstart=function(e){ e.preventDefault(); e.stopPropagation(); }