-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1313aa2
commit 3ef3815
Showing
9 changed files
with
1,582 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> | ||
<title>寒玉知-仿QQ拖拽删除</title> | ||
</head> | ||
<style> | ||
<!--nothing needs to import--> | ||
html,body{margin: 0;} | ||
#body{overflow: scroll;height: 100vh;} | ||
.drag{position: relative;padding:10px 30px;z-index: 1;} | ||
.drag div{ | ||
width: 40px; | ||
height: 40px; | ||
color: #FFF; | ||
text-align: center; | ||
font-size: 20px; | ||
line-height: 40px; | ||
border-radius: 50%; | ||
background-color: red; | ||
} | ||
.dragdom{ | ||
position: relative; | ||
} | ||
</style> | ||
<body> | ||
<div id="body"> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="1">1</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="2">36</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="3">7</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="4">15</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="5">9</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="6">14</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="7">30</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="8">65</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="9">34</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="10">4</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="11">2</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="12">20</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="1">20</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="2">20</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="3">20</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="4">20</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="5">20</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="6">20</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="7">20</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="8">20</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="9">20</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="10">20</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="11">20</div> | ||
</div> | ||
<div class="drag"> | ||
<div class="div1 dragdom" data-target="12">20</div> | ||
</div> | ||
<div id="word"> | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
<script src="./drag.js"></script> | ||
<script> | ||
new MoveDrag({ | ||
doms: '.dragdom', | ||
max: 90, | ||
fillcolor: 'red' | ||
}) | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.