摘要: js代码 $('img').click(function () { //获取图片路径 var imgsrc = $(this).attr("src"); console.log(imgsrc); var opacityBottom = '<div class="opacityBottom" styl 阅读全文
posted @ 2021-08-25 16:37 zxh91989 阅读(709) 评论(0) 推荐(0) 编辑
摘要: 查看大图、html查看大图、js查看大图 $(".pimg").click(function(){ var _this = $(this);//将当前的pimg元素作为_this传入函数 imgShow("#outerdiv", "#innerdiv", "#bigimg", _this); }); 阅读全文
posted @ 2021-08-25 16:36 zxh91989 阅读(796) 评论(0) 推荐(0) 编辑