<style type="text/css">
.background_2x {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #9f9f9f91;
z-index: -1;
}
.box {
position: fixed;
top: 0;
left: 0;
width: 200px;
}
.title {
background: rebeccapurple;
}
.title:hover {
cursor: Move;
}
.content {
height: 200px;
width: 200px;
background: #e3e3ee;
}
</style>
<body>
<div class="background_2x">
</div>
<div class="box">
<div class="title">表头</div>
<div class="content">
</div>
</div>
</body>
<script >
$(function() {
$(".title").mousedown(function() {
$(".box").on({ // 要移动拖拽的目标DOM
mousedown: function(e){
jquery拖拽DOM
最新推荐文章于 2021-09-02 10:58:10 发布
<style type="text/css"> .background_2x { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #9f9f9f91; z-index: ...
摘要由CSDN通过智能技术生成