lightbox-btn { opacity: 0; filter: alpha(opacity=50); }
.lightbox-btn:hover { opacity: 1; filter: alpha(opacity=100); cursor: pointer; }.
lightbox-pre-btn { background: url(prev.png) no-repeat left center; left: 0; }
.lightbox-btn:hover { opacity: 1; filter: alpha(opacity=100); cursor: pointer; }.
lightbox-pre-btn { background: url(prev.png) no-repeat left center; left: 0; }
2016-11-12
左右也可以用opactiy和hover搭配使用,在lightbox-pre-btn和lightbox-next-btn上面就把图片加上然后设置为透明的,鼠标移动上面时候设置opacity透明度为1
#G-lightbox-popup .lightbox-pic-view .lightbox-pre-btn{background: url(../icon/prev.png) no-repeat left center;opacity:0}
#G-lightbox-popup .lightbox-pic-view .lightbox-pre-btn{opacity:1}
#G-lightbox-popup .lightbox-pic-view .lightbox-pre-btn{background: url(../icon/prev.png) no-repeat left center;opacity:0}
#G-lightbox-popup .lightbox-pic-view .lightbox-pre-btn{opacity:1}
2016-11-12
左右icon直接hover实现就可以吧
#G-lightbox-popup .lightbox-pic-view .prev:hover{background: url(../icon/prev.png) no-repeat left center;}
#G-lightbox-popup .lightbox-pic-view .next:hover{background: url(../icon/next.png) no-repeat right center;}
#G-lightbox-popup .lightbox-pic-view .prev:hover{background: url(../icon/prev.png) no-repeat left center;}
#G-lightbox-popup .lightbox-pic-view .next:hover{background: url(../icon/next.png) no-repeat right center;}
2016-10-28
最赞回答 / 拉普拉斯丶妖_0
找到原因了,困扰了我半天,在模板加载那个函数的img 没加 class,如下:<...code...>以为没class,一直回去不了 $("img.lightbox-images")这个对象!
2016-10-24