<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<script src="https://raw.githack.com/SortableJS/Sortable/master/Sortable.js"></script>
<style type="text/css">
ul {
list-style: none;
padding: 0;
}
li {
background: #eee;
margin: 1px;
padding: 5px 10px;
cursor: pointer;
}
.sortable-ghost {
opacity: .6;
}
.wrapper li {
background: #eee;
margin: 1px;
padding: 5px 10px;
float: left
}
.clearfix::before {
content:'';
display:block;
width: 0;
clear: both;
background: red;
text-align:center;
line-height:
}
</style>
</head>
<body>
<ul id="foo">
<li>foo 1</li
拖拽排序
最新推荐文章于 2023-08-23 09:29:14 发布