/www/wwwroot/cloud.lincq.cn/代码整理/原生js写的轮播图/css/poster.css.poster-area { user-select: none; -o-user-select: none; -moz-user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-appearance: none; -webkit-text-size-adjust: none!important; -webkit-box-sizing: border-box; box-sizing: border-box; } .poster-area, .poster-list { margin: 0; padding: 0; background: transparent; } .poster-area .poster-list>li, .poster-area .poster-number>li { margin: 0; padding: 0; list-style: none; overflow: hidden; } .poster-area .poster-list { margin: 0 auto; width: 100%; height: 100%; position: relative; overflow: hidden; } .poster-area .poster-list>li { width: calc(100%); height: calc(100%); background-color: transparent; background-position: center; background-size: cover; position: absolute; opacity: 0; transition: all 0ms ease; border: none; z-index: 0; margin: 0; } .poster-area .poster-list li.active { opacity: 1; z-index: 1; } .poster-list-html { position: relative; width: 100%; height: 100%; top: 0; right: 0; bottom: 0; left: 0; background: transparent; } .poster-area .poster-number { margin: 6px 0; padding: 0; width: max-content; height: max-content; line-height: 0px; position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2; overflow: hidden; border-radius: 5px; background: transparent; opacity: 0.8; } .poster-area .poster-number>li { margin: 0px 3px; width: 10px; height: 6px; text-indent: 9999px; background: transparent; display: inline-block; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; background-color: #eee; border-radius: 1px; } .poster-area .poster-number li.active { transition: all 360ms ease; width: 20px; background: #04a9f4; } .poster-left, .poster-right { width: 36px; height: 50px; background: rgba(255, 255, 255, .3); position: absolute; border-radius: 30%; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; text-align: center; text-shadow: 0px 0px 1px #000; box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, .3); color: #fff; z-index: 2; } .poster-left { top: 50%; transform: translateY(-50%); left: 15px; } .poster-left:after { content: "‹"; display: inline-block; font-weight: 999; font-size: 28px; line-height: 50px; } .poster-right { top: 50%; transform: translateY(-50%); right: 15px; } .poster-right:after { content: "›"; display: inline-block; font-weight: 999; font-size: 28px; line-height: 50px; }