Donner DKB-10 Piano Bench with Storage White
.flex {
display: flex;
}
.bg-cover {
background-size: cover;
}
.pc\:none {
display: none;
}
.pc\:flex {
display: flex;
}
@media (max-width:750px) {
.mb\:flex {
display: flex;
}
.mb\:none {
display: none;
}
.mb\:block {
display: block;
}
}
/* 背景轮播图样式 */
.bg-swiper {
width: 100%;
position: relative;
overflow: hidden;
/* 模块与下方距离 */
margin-bottom: 60px;
line-height: 1.25;
}
.bg-swiper-container {
width: 100%;
height: 100%;
}
.bg-swiper-container img {
width: 100%;
height: 100%;
object-fit: cover;
transform: translateX(0);
transition: transform .4s;
}
.bg-swiper-text {
position: absolute;
/* pc文本框与上方距离 */
top: 50%;
transform: translateY(-50%);
/* pc文本框与左边距离 */
left: 80px;
/* 文本框背景颜色与透明度 */
background-color: rgba(200, 200, 200, 0.8);
z-index: 4;
/* 文本框内边距,第一个值是上下,第二个值是左右 */
padding: 40px 40px;
/* 文本框长度 */
width: 400px;
box-sizing: border-box;
}
.bg-swiper-title {
/* pc标题大小 */
font-size: 24px;
}
.bg-swiper-dis {
/* pc简述大小 */
font-size: 18px;
}
.arrow-l,
.arrow-r {
position: absolute;
z-index: 3;
top: 50%;
cursor: pointer;
user-select: none;
}
.arrow-l i,
.arrow-r i {
width: 24px;
height: 24px;
display: block;
position: relative;
}
:root {
/* 背景轮播图箭头颜色 */
–bg-swiper-arrow-color: #000000;
}
.arrow-l i::before,
.arrow-r i::before {
content: “”;
display: block;
width: 24px;
height: 2px;
background-color: var(–bg-swiper-arrow-color);
position: absolute;
top: 0;
}
.arrow-l i::after,
.arrow-r i::after {
content: “”;
display: block;
width: 2px;
height: 24px;
background-color: var(–bg-swiper-arrow-color);
position: absolute;
right: 0;
}
.arrow-l {
transform: rotateZ(-135deg);
left: 20px;
}
.arrow-r {
transform: rotateZ(45deg);
right: 20px;
}
.bg-swiper-point {
width: 100%;
justify-content: center;
position: absolute;
/* 指示点与下方距离 */
bottom: 20px;
z-index: 4;
}
.bg-swiper-point span {
/* 指示点大小,两个值都需要调整为一样大小才是圆形 */
width: 12px;
height: 12px;
border-radius: 50%;
/* 指示点颜色 */
background-color: #b0b8c1;
/* 指示点左右距离,只需调整第二个值 */
margin: 0 8px;
}
.bg-swiper-point span.on {
/* 选中指示点颜色 */
background-color: #404040;
}
@media (max-width:750px) {
.bg-swiper {
width: 100%;
height: auto;
}
.bg-swiper-text {
width: 100%;
position: static;
transform: translate(0);
}
.bg-swiper-point {
position: static;
/* M端指示点与上方距离 */
margin-top: 12px;
}
.bg-swiper-title {
/* M端标题大小 */
font-size: 24px;
}
.bg-swiper-dis {
/* M端简述大小 */
font-size: 18px;
}
}
/* 背景轮播图样式 END */