diff --git a/css/index.css b/css/index.css index be8b1b9..c3a2a1c 100644 --- a/css/index.css +++ b/css/index.css @@ -1,13 +1,13 @@ /* banner */ -.banner-cont { - width: 100%; -} - -.banner-cont .swiper-slide { - height: 500px; - width: 100%; - background: linear-gradient(0, #f7f9fa, #f9fafb); -} +.banner-cont { + width: 100%; +} + +.banner-cont .swiper-slide { + height: 500px; + width: 100%; + background: linear-gradient(0, #f7f9fa, #f9fafb); +} .banner-cont .swiper-slide .img { /* position: absolute; */ @@ -35,9 +35,31 @@ border-radius: 3px; } -.banner-cont .swiper-pagination-bullet-active { - background: rgba(255, 103, 57, 1); -} +.banner-cont .swiper-pagination-bullet-active { + background: rgba(255, 103, 57, 1); +} + +.banner-cont { + position: relative; +} + +.banner-cont .banner-text { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + display: flex; + align-items: center; +} + +.banner-cont .banner-text .section-content { + z-index: 1; +} + +.banner-cont .banner-text .btn { + pointer-events: auto; +} .banner .banner-s { box-shadow: 0px 0px 16px rgba(52, 52, 52, 0.16); diff --git a/index.html b/index.html index aca86d7..97557d4 100644 --- a/index.html +++ b/index.html @@ -9,16 +9,29 @@
-