seo-optimize-iframe/css/datouwang.com.css

97 lines
1.4 KiB
CSS
Raw Normal View History

2022-04-14 10:02:22 +00:00
/* DaTouWang URL: www.datouwang.com */
body {
margin: 0;
padding: 0;
}
h2,
h4 {
font-weight: normal;
}
#persons {
position: relative;
width: 1200px;
margin: 0 auto
}
#persons .swiper-container {
padding-bottom: 60px;
}
#persons .swiper-slide {
width: 540px;
height: 340px;
}
#persons .swiper-slide .text {
position: absolute;
left: 15%;
top: 20%;
width: 90%;
margin: 0 auto;
clear: both;
overflow: hidden;
}
#persons .swiper-slide .text img {
float: left;
width: 120px;
height: 120px;
margin-right: 15px;
border: 2px solid #ededed;
}
#persons .swiper-slide h2 {
float: left;
padding-top: 0;
text-align: center;
font-size: 20px;
margin-bottom: 10px;
}
#persons .swiper-slide h4 {
float: left;
margin: 0;
width: 60%;
font-size: 16px;
}
#persons .swiper-pagination {
width: 100%;
bottom: 20px;
}
#persons .swiper-pagination-bullets .swiper-pagination-bullet {
margin: 0 5px;
border: 3px solid #fff;
background-color: #d5d5d5;
width: 10px;
height: 10px;
opacity: 1;
}
#persons .swiper-pagination-bullets .swiper-pagination-bullet-active {
border: 3px solid #00aadc;
background-color: #fff;
}
#persons .swiper-button-prev {
left: -30px;
top: 40%;
width: 45px;
height: 45px;
}
#persons .swiper-button-prev:hover {
background-position: 0 -46px;
background-size: 100%
}
#persons .swiper-button-next {
right: -30px;
top: 40%;
width: 45px;
height: 45px;
}