本文实例为大家分享了js鼠标拖拽div左右滑动的具体代码,供大家参考,具体内容如下
Title body{ position: relative; margin:0; padding:0; width:100%; height: 1000px; } #box{ height: 50px; width:200px; position: absolute; left:50%; top:50%; margin-left:-200px; margin-top:-200px; background: #CDCDCD; } #small-box{ height: 50px; width:50px; position: absolute; left:0; top:0; background: #FF66CC; cursor:move ; opacity: 0.7; }
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持考高分网。



