|
|
(未显示同一用户的34个中间版本) |
第1行: |
第1行: |
− | {{#widget:style|style= | + | <includeonly><includeonly>{{#Widget:Slick/style}}<div class="main-carousel" >{{#if:{{{轮播图片1|}}}|<div>{{#if:{{{轮播说明1|}}}|<span class="blackout">{{{轮播说明1|}}}</span>|}}[[文件:{{{轮播图片1|}}}|link={{{轮播链接1|}}}|class=no-lazy]]</div>|}}{{#if:{{{轮播图片2|}}}|<div>{{#if:{{{轮播说明2|}}}|<span class="blackout">{{{轮播说明2|}}}</span>|}}[[文件:{{{轮播图片2|}}}|link={{{轮播链接2|}}}|class=no-lazy]]</div>|}}{{#if:{{{轮播图片3|}}}|<div>{{#if:{{{轮播说明3|}}}|<span class="blackout">{{{轮播说明3|}}}</span>|}}[[文件:{{{轮播图片3|}}}|link={{{轮播链接3|}}}|class=no-lazy]]</div>|}}{{#if:{{{轮播图片4|}}}|<div>{{#if:{{{轮播说明4|}}}|<span class="blackout">{{{轮播说明4|}}}</span>|}}[[文件:{{{轮播图片4|}}}|link={{{轮播链接4|}}}|class=no-lazy]]</div>|}}{{#if:{{{轮播图片5|}}}|<div>{{#if:{{{轮播说明5|}}}|<span class="blackout">{{{轮播说明5|}}}</span>|}}[[文件:{{{轮播图片5|}}}|link={{{轮播链接5|}}}|class=no-lazy]]</div>|}}{{#if:{{{轮播图片6|}}}|<div>{{#if:{{{轮播说明6|}}}|<span class="blackout">{{{轮播说明6|}}}</span>|}}[[文件:{{{轮播图片6|}}}|link={{{轮播链接6|}}}|class=no-lazy]]</div>|}}{{#if:{{{轮播图片7|}}}|<div>{{#if:{{{轮播说明7|}}}|<span class="blackout">{{{轮播说明7|}}}</span>|}}[[文件:{{{轮播图片7|}}}|link={{{轮播链接7|}}}|class=no-lazy]]</div>|}}{{#if:{{{轮播图片8|}}}|<div>{{#if:{{{轮播说明8|}}}|<span class="blackout">{{{轮播说明8|}}}</span>|}}[[文件:{{{轮播图片8|}}}|link={{{轮播链接8|}}}|class=no-lazy]]</div>|}}{{#if:{{{轮播图片9|}}}|<div>{{#if:{{{轮播说明9|}}}|<span class="blackout">{{{轮播说明9|}}}</span>|}}[[文件:{{{轮播图片9|}}}|link={{{轮播链接9|}}}|class=no-lazy]]</div>|}}</div>{{#Widget:Slick}}</includeonly> |
− | .jcarousel-wrapper {
| |
− | position: relative;
| |
− | border: 5px solid #fff;
| |
− | -webkit-box-shadow: 0 0 2px #999;
| |
− | -moz-box-shadow: 0 0 2px #999;
| |
− | box-shadow: 0 0 2px #999;
| |
− | margin-bottom: 30px;
| |
− | max-width:720px;
| |
− | max-height:450px;
| |
− | } | |
− | | |
− | /** Carousel **/
| |
− | | |
− | .jcarousel {
| |
− | position: relative;
| |
− | overflow: hidden;
| |
− | } | |
− | | |
− | .jcarousel ul {
| |
− | width: 20000em;
| |
− | position: relative;
| |
− | list-style: none;
| |
− | margin: 0;
| |
− | padding: 0;
| |
− | } | |
− | | |
− | .jcarousel li {
| |
− | /* float: left; */
| |
− | position: relative;
| |
− | margin: 0 !important;
| |
− | display: inline-block;
| |
− | overflow: hidden;
| |
− | vertical-align: middle;
| |
− | } | |
− | | |
− | .jcarousel img {
| |
− | display: block;
| |
− | max-width: 100%;
| |
− | height: auto !important;
| |
− | margin: 0 auto;
| |
− | } | |
− | | |
− | /** Carousel Controls **/
| |
− | | |
− | .jcarousel-control-prev,
| |
− | .jcarousel-control-next {
| |
− | position: absolute;
| |
− | top: 50%;
| |
− | margin-top: -15px;
| |
− | width: 30px;
| |
− | height: 30px;
| |
− | text-align: center;
| |
− | background: #f4c430 !important;
| |
− | color: black !important;
| |
− | text-decoration: none !important;
| |
− | text-shadow: 0 0 1px #000;
| |
− | font: 24px/27px Arial, sans-serif;
| |
− | -webkit-border-radius: 30px;
| |
− | -moz-border-radius: 30px;
| |
− | border-radius: 30px;
| |
− | -webkit-box-shadow: 0 0 4px black;
| |
− | -moz-box-shadow: 0 0 4px black;
| |
− | box-shadow: 0 0 4px black;
| |
− | opacity: 0.7;
| |
− | transition: all 0.1s ease-in;
| |
− | } | |
− | | |
− | .jcarousel-control-prev:hover,
| |
− | .jcarousel-control-next:hover {
| |
− | opacity: 1;
| |
− | } | |
− | | |
− | .jcarousel-control-prev {
| |
− | left: 15px;
| |
− | } | |
− | | |
− | .jcarousel-control-next {
| |
− | right: 15px;
| |
− | } | |
− | | |
− | .jcarousel-control-prev:hover span,
| |
− | .jcarousel-control-next:hover span {
| |
− | display: block;
| |
− | } | |
− | | |
− | .jcarousel-control-prev.inactive,
| |
− | .jcarousel-control-next.inactive {
| |
− | opacity: .25;
| |
− | cursor: default;
| |
− | } | |
− | | |
− | /** Carousel Pagination **/ | |
− | | |
− | .jcarousel-pagination {
| |
− | position: absolute;
| |
− | bottom: -30px;
| |
− | right: 0;
| |
− | margin: 0 !important;
| |
− | }
| |
− | | |
− | .jcarousel-pagination a {
| |
− | text-decoration: none;
| |
− | display: inline-block;
| |
− | font-size: 11px;
| |
− | height: 10px;
| |
− | width: 10px;
| |
− | line-height: 10px;
| |
− | border: 1px white solid;
| |
− | background: #4E443C;
| |
− | color: #4E443C;
| |
− | text-indent: -9999px;
| |
− | transform: rotate(45deg);
| |
− | margin-left: 10px;
| |
− | -webkit-box-shadow: 0 0 2px #4E443C;
| |
− | -moz-box-shadow: 0 0 2px #4E443C;
| |
− | box-shadow: 0 0 2px #4E443C;
| |
− | } | |
− | | |
− | .jcarousel-pagination a.active {
| |
− | background: #f4c430;
| |
− | color: #fff;
| |
− | opacity: 1;
| |
− | -webkit-box-shadow: 0 0 2px #F0EFE7;
| |
− | -moz-box-shadow: 0 0 2px #F0EFE7;
| |
− | box-shadow: 0 0 2px #F0EFE7;
| |
− | } | |
− | | |
− | .jcarousel .blackout{
| |
− | height: auto;
| |
− | width: calc(100% - 20px);
| |
− | position: absolute;
| |
− | display: block;
| |
− | background-image: linear-gradient(90deg, black, transparent);
| |
− | bottom: 0;
| |
− | padding: 5px 10px;
| |
− | } | |
− | }} | |
− | <div class="jcarousel-wrapper">
| |
− | <div class="jcarousel"> | |
− | *<span class="blackout">[[裂变链接]]活动进行中</span>[[文件:Banner-2019夏活裂变链接.jpg|link=裂变链接]]
| |
− | *<span class="blackout">test</span>[[文件:Banner-心智升级第六弹预告.jpg|link=心智升级]]
| |
− | </div><span href="#" class="jcarousel-control-prev">‹</span><span href="#" class="jcarousel-control-next">›</span><p class="jcarousel-pagination"></p> | |
− | </div> | |
− | {{#widget:sandbox6}} | |