<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>简单鼠标拖拽</title>
<style type="text/css">
#dray {
position: absolute;
left: 0;
top: 0;
width: 300px;
height: 300px;
background-color: red;
-moz-user-select: none;
}
#box {
width: 400px;
height: 400px;
margin-left: 500px;
margin-top: 200px;
background-color: green;
}
</style>
</head>
<body οnlοad="dvDray()">
<div id="dray">拖我</div>
<div id="b
js实现简单鼠标拖拽,文件拖入文件夹效果
最新推荐文章于 2023-03-14 14:23:48 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)