vue|vue 使用hammerjs 完成图片的双指放大缩小及单指移动

.page { width: 375px; height: 100vh; background: url('../../assets/newimages/bg.png') center center no-repeat; background-size: 100% 100%; } .demo { position: absolute; } .demo-img { width: 260px; height: 260px; display: block; overflow: hidden; }

    推荐阅读