//点击图片打开 $(".video-info img").click(function(){ //获得图片的src属性 var url=$(this).prop("src"); layer.open({ area: ['40%', '40%'], type: 3, //3没有关闭按钮 和5有个关闭按钮 closeBtn: 1, shadeClose: true, // content: "" //type5的时候用这个 content: "" //type3的时候用这个 }); })
推荐