0123
parent
b8b3f190be
commit
0abfe65a4f
201
css/style.css
201
css/style.css
|
@ -1,122 +1,79 @@
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
border: 0;
|
border: 0;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
display: block;
|
display: block;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 轮播样式 */
|
/* 轮播样式 */
|
||||||
.banner-swiper {
|
.banner-swiper {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
height: auto;
|
height: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner-swiper .swiper-slide {
|
.banner-swiper .swiper-slide {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 分页器 */
|
/* 分页器 */
|
||||||
.banner-swiper .swiper-container-horizontal>.swiper-pagination-bullets,
|
.banner-swiper .swiper-container-horizontal>.swiper-pagination-bullets,
|
||||||
.banner-swiper .swiper-pagination-custom,
|
.banner-swiper .swiper-pagination-custom,
|
||||||
.banner-swiper .swiper-pagination-fraction {
|
.banner-swiper .swiper-pagination-fraction {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
bottom: 120px;
|
bottom: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 指示点默认样式 */
|
/* 指示点默认样式 */
|
||||||
.banner-swiper .swiper-pagination-bullet {
|
.banner-swiper .swiper-pagination-bullet {
|
||||||
width: 13px;
|
width: 13px;
|
||||||
height: 13px;
|
height: 13px;
|
||||||
background-color: #d5ddf5;
|
background-color: #d5ddf5;
|
||||||
margin: 0 6px !important;
|
margin: 0 6px !important;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet-active {
|
.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet-active {
|
||||||
background-color: #f6ab00;
|
background-color: #f6ab00;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 内容 */
|
/* 内容 */
|
||||||
.content img{
|
.content img{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.foot{
|
/* 尾部 */
|
||||||
position: relative;
|
.foot{
|
||||||
}
|
position: relative;
|
||||||
.foot img{
|
}
|
||||||
width: 100%;
|
.foot img{
|
||||||
}
|
width: 100%;
|
||||||
.back{
|
}
|
||||||
display: flex;
|
.toTop{
|
||||||
align-items: center;
|
display: block;
|
||||||
position: absolute;
|
width: 15%;
|
||||||
text-decoration: none;
|
height: 35%;
|
||||||
left: 50%;
|
position: absolute;
|
||||||
bottom: 16.5%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
bottom: 8%;
|
||||||
}
|
transform: translateX(-50%);
|
||||||
.back>span{
|
cursor: pointer;
|
||||||
display: block;
|
}
|
||||||
font-family: "仿宋";
|
|
||||||
font-size: 22px;
|
|
||||||
line-height: 38px;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #cd322e;
|
|
||||||
margin: 0 20px;
|
|
||||||
}
|
|
||||||
.back>ins{
|
|
||||||
display: block;
|
|
||||||
width: 12px;
|
|
||||||
height: 12px;
|
|
||||||
border-radius: 100%;
|
|
||||||
background-color: #cd322e;
|
|
||||||
}
|
|
||||||
@media screen and (max-width:900px){
|
|
||||||
.back>span{
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 24px;
|
|
||||||
margin: 0 10px;
|
|
||||||
}
|
|
||||||
.back>ins{
|
|
||||||
display: block;
|
|
||||||
width: 8px;
|
|
||||||
height: 8px;
|
|
||||||
border-radius: 100%;
|
|
||||||
background-color: #cd322e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width:780px){
|
|
||||||
.back>span{
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 24px;
|
|
||||||
margin: 0 10px;
|
|
||||||
}
|
|
||||||
.back>ins{
|
|
||||||
display: block;
|
|
||||||
width: 8px;
|
|
||||||
height: 8px;
|
|
||||||
border-radius: 100%;
|
|
||||||
background-color: #cd322e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue