jquery插件实现轮播图效果 |
您所在的位置:网站首页 › jquery轮播图代码 › jquery插件实现轮播图效果 |
每天一个jquery插件-jquery插件实现轮播图,供大家参考,具体内容如下 效果如下 代码部分 .rel{ white-space:nowrap; overflow-y: hidden; overflow-x: auto; } .rel::-webkit-scrollbar{ height: 0px; width: 0px; } .img{ width: 100%; height: 100%; } $.prototype.lbt = function(obj) { obj = obj == undefined ? {} : obj; obj.time = obj.time==undefined?1000:obj.time; var that = this; var $that = $(this); $that.arr().forEach($item=>{ $item.addClass("rel"); $(function(){ //添加dom obj.data.forEach(item=>{ var $img = $("以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |