本文实例为大家分享了js上下滑动效果的具体代码,供大家参考,具体内容如下
document .box{ width: 512px; height: 400px; margin:100px auto; overflow: hidden; position: relative; border: 1px solid red; } .box img{ position: absolute; left: 0; top: 0; } .box div{ width: 512px; height: 200px; position: absolute; left: 0; } .up{ top:0; } .down{ top: 200px; }
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持考高分网。



