拖拽吸附条件查询模板
上个效果图
上代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sortable.js中文网</title>
<link rel="stylesheet" href="assets/bootstrap.v4.1.0.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300,400,700">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/monokai-sublime.min.css">
<link rel="stylesheet" href="assets/Features-Clean.css">
<meta name="keyword" content="sortable.js, sortable.js下载, sortable.js移动端,sortable.js重新排序,sortable.js中文">
<meta name="description" content="sortablejs中文网包含sortable.js中文文档,demo以及应用案例。Sortable.js是一款轻量级的拖放排序列表的js插件(虽然体积小,但是功能很强大">
<style>
.aliyun {
position: fixed;
top: 0;
right: 10px;
width: 250px;
}
#example4-left a{
display: block;
cursor: move;
}
#example4-right a{
/*width: 80px;*/
height: 30px;
line-height: 30px;
display: inline-block;
border: 1px solid #c0c0c0;
border-radius: 5px;
text-align: left;
padding:0 10px;
color: #c0c0c0;
cursor: pointer;
}
a:hover{
color: #c0c0c0;
text-decoration: none;
}
#example4-right a:hover{
border-color:#0ea0ff ;
}
#example4-left{
}
#example4-right a span{
display: none;
position: relative;
line-height: 12px;
left: 7px;
text-align: center;
width: 15px;
height: 15px;
border: 1px #c0c0c0 solid;
border-radius: 50%;
}
#example4-right a:hover span{
display: inline-block;
color: #0ea0ff;
border-color:#0ea0ff ;
}
#example4-left a span{
display: none;
}
</style>
</head>
<body>
<div id="sorting-disabled" class="row">
<div style="
padding-left: 100px;
padding-right: 50px;">
维度列表
<div id="example4-left">
<a class="i_tj">维度1 <span>×</span> </a>
<a class="i_tj">维度2 <span>×</span> </a>
<a class="i_tj">维度3 <span>×</span> </a>
<a class="i_tj">维度4 <span>×</span> </a>
<a class="i_tj">维度5 <span>×</span> </a>
</div>
</div>
<div>
筛选条件
<div id="example4-right">
<a class="i_sx">筛选条件1 <span>×</span></a>
<a class="i_sx">筛选条件2 <span>×</span></a>
<a class="i_sx">筛选条件3 <span>×</span></a>
<a class="i_sx">筛选条件4 <span>×</span></a>
<a class="i_sx">筛选条件5 <span>×</span></a>
</div>
这里模仿表格实时显示
<br>
这里模仿表格实时显示
<br>
这里模仿表格实时显示
<br>
这里模仿表格实时显示
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.0/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/languages/javascript.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Sortable/1.8.3/Sortable.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="assets/theme.js"></script>
<script src="assets/app.js"></script>
<script>
$("#example4-right").on('click','a',function(){
$(this).hide().remove()
return false
});
</script>
</body>
</html>
源码资源文件已更新:https://download.csdn.net/download/qq_42197013/12485535