fancybox.css
让前后图标更大且不遮挡图片
.fancybox-nav {
position: absolute;
top: 0;
width: 100%;
height: 100%;
cursor: pointer;
text-decoration: none;
background: transparent url('../img/blank.gif'); /* helps IE */
-webkit-tap-highlight-color: rgba(0,0,0,0);
z-index: 804;
}
.fancybox-prev {
left: -100%;
}
.fancybox-next {
right: -100%;
}
.fancybox-nav span {
position: absolute;
top: 50%;
width: 36px;
height: 34px;
margin-top: -18px;
cursor: pointer;
z-index: 804;
/*visibility: hidden;*/
transform: scale(1.4);
transition: transform 0.3s ease; /* 添加过渡动画,让效果更平滑 */
}
多张图片下方圆点提示美化
.slick-dots {
display: flex;
flex-wrap: wrap;
margin: 0.5em auto;
padding: 0;
bottom: 0;
right: 0;
width: 100%;
justify-content: center;
list-style: none;
text-align: center;
align-items: center;
}
.slick-dots li {
margin: 0.5em;
padding: 0;
cursor: pointer;
}