/***************************************************** * 象牙塔中国样式--文件编写注释规范 *****************************************************/ @charset "utf-8"; /***************************************************** * 文件名称:index_banner.css * 作 者:界面设计制作部---XX * 创建日期:2021-9-28 * 内容概要:左边切换,右边列表的样式 *****************************************************/ .index-banner { width: inherit; height: 100vh; position: relative; width: 100%; height: 100vh; overflow: hidden; } .index-banner .swiper-wrapper { left: 0; top: 0; } .index-banner .swiper-slide { position: relative; } .index-banner .swiper-slide::after { content: ""; display: block; position: absolute; bottom: 0; width: inherit; height: 100px; background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent); z-index: 1; } .index-banner .swiper-slide .container { position: absolute; left: 50%; transform: translateX(-50%); bottom: 5%; z-index: 2; max-width: 100%; } .index-banner .swiper-slide .container h3 { position: relative; z-index: 2; color: white; white-space: nowrap; text-shadow: 0 0 5px black; } .index-banner .swiper-slide a { width: inherit; } .index-banner .swiper-slide a:hover img { transform: scale(1); } .index-banner .swiper-slide img { width: inherit; height: 100vh; object-fit: cover; } .index-banner > .container { position: absolute; bottom: 5%; height: auto; left: 50%; transform: translateX(-50%); z-index: 10; text-align: right; } .index-banner > .container .fraction { display: inline-block; position: relative; z-index: 10; color: white; margin-bottom: 10px; } .index-banner > .container .fraction span { font-family: ArialMT,sans-serif; font-size: 16px; color: #ffffff; letter-spacing: 0; line-height: 28px; } .index-banner > .container .fraction span:first-child { font-size: 32px; } .index-banner > .container .swiper-pagination { right: 15px; bottom: 0; height: 2px; } .index-banner > .container .swiper-pagination span { margin-left: 10px; height: 2px; width: 35px; border-radius: 0; background: white; opacity: 1; display: block; float: left; } .index-banner > .container .swiper-pagination .swiper-pagination-bullet-active { background: #70a0e4; }