更新时间:2020-03-21 23:37:06
更新说明:更新新版谷歌浏览器必须要在执行事件处理函数之后,没有掉用过 preventDefault() 报错问题
更新时间:2017-8-12 10:32:41
更新说明:原来console.log()会影响页面渲染,console在8+才开始引入,所以在低版本浏览器是没办法获取到其对象,在开发时没有将其去掉,导致低版本浏览器不能使用,此次更新其问题。
引入相关文件:
1 2 3 | < link rel = "stylesheet" type = "text/css" href = "css/touchTouch.css" > < script src = "js/jquery-1.7.1.min.js" ></ script > < script src = "js/touchTouch.jquery.js" ></ script > |
单个列表:
1 2 3 4 5 | < div class = "exc1" > < a href = "images/imgb1.jpg" >< img src = "images/imgb1.jpg" ></ a > < a href = "images/imgb2.jpg" >< img src = "images/imgb2.jpg" ></ a > < a href = "images/imgb3.jpg" >< img src = "images/imgb3.jpg" ></ a > </ div > |
多个列表图片展示:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | < div class = "exc2" > < div class = "list" > < ul > < li >< a href = "images/imgb1.jpg" >< img src = "images/imgb1.jpg" ></ a ></ li > < li >< a href = "images/imgb2.jpg" >< img src = "images/imgb2.jpg" ></ a ></ li > < li >< a href = "images/imgb3.jpg" >< img src = "images/imgb3.jpg" ></ a ></ li > < li >< a href = "images/imgb4.jpg" >< img src = "images/imgb4.jpg" ></ a ></ li > </ ul > </ div > < div class = "list" > < ul > < li >< a href = "images/imgb1.jpg" >< img src = "images/imgb1.jpg" ></ a ></ li > < li >< a href = "images/imgb2.jpg" >< img src = "images/imgb2.jpg" ></ a ></ li > < li >< a href = "images/imgb3.jpg" >< img src = "images/imgb3.jpg" ></ a ></ li > < li >< a href = "images/imgb4.jpg" >< img src = "images/imgb4.jpg" ></ a ></ li > </ ul > </ div > </ div > |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com