html代码
<div id="teachingresource">
<div id="draggable" v-on:touchmove="bannerTouchStart($event)">
</div>
</div>
css代码
#teachingresource2{
position: relative;
width:500px;
height: 500px;
background: blue;
}
#draggable{
width:200px;
height:200px;
background:red;
position: absolute