原生JS实现鼠标按下拖拽效果,供大家参考,具体内容如下
鼠标拖动 body{ margin:0; } div{ width:200px; height:200px; position:absolute; background-color:pink; }