fgjy/css/style.css

80 lines
1.3 KiB
CSS
Raw Permalink Normal View History

2022-01-23 05:24:19 +00:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
-webkit-font-smoothing: antialiased;
font-size: 20px;
}
img {
border: 0;
vertical-align: middle;
display: block;
object-fit: cover;
}
/* 轮播样式 */
.banner-swiper {
overflow-x: hidden;
height: auto;
position: relative;
background-color: #FFFFFF;
}
.banner-swiper .swiper-slide {
position: relative;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
/* 分页器 */
.banner-swiper .swiper-container-horizontal>.swiper-pagination-bullets,
.banner-swiper .swiper-pagination-custom,
.banner-swiper .swiper-pagination-fraction {
font-size: 16px;
font-weight: bold;
color: #fff !important;
bottom: 120px;
}
/* 指示点默认样式 */
.banner-swiper .swiper-pagination-bullet {
width: 13px;
height: 13px;
background-color: #d5ddf5;
margin: 0 6px !important;
cursor: pointer;
opacity: 1;
}
.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet-active {
background-color: #f6ab00;
}
/* 内容 */
.content img{
width: 100%;
}
/* 尾部 */
.foot{
position: relative;
}
.foot img{
width: 100%;
}
.toTop{
display: block;
width: 15%;
height: 35%;
position: absolute;
left: 50%;
bottom: 8%;
transform: translateX(-50%);
cursor: pointer;
}