模板

轮播图:修订间差异

来自卡厄思梦境WIKI

律Rhyme留言 | 贡献
创建页面,内容为“<includeonly><div class="carousel-container" style="width: 100%; height: 350px; position: relative; overflow: hidden; background: #f0f0f0;"> <div class="carousel-wrapper" style="display: flex; height: 100%; transition: transform 0.5s ease;"> {{#if:{{{图1|}}}| <div class="carousel-slide" style="min-width: 100%; height: 100%; position: relative;"> [[File:{{{图1}}}|center|350px|link=]] {{#if:{{{图1标题|}}}|<div class="carousel-caption">{…”
 
律Rhyme留言 | 贡献
无编辑摘要
 
(未显示同一用户的24个中间版本)
第1行: 第1行:
<includeonly><div class="carousel-container" style="width: 100%; height: 350px; position: relative; overflow: hidden; background: #f0f0f0;">
<includeonly>
<div class="carousel-container" style="width: 100%; height: 280px; position: relative; overflow: hidden; background: #f0f0f0;"
    data-autoplay="{{{自动播放|1}}}" data-interval="{{{间隔|4000}}}">
   <div class="carousel-wrapper" style="display: flex; height: 100%; transition: transform 0.5s ease;">
   <div class="carousel-wrapper" style="display: flex; height: 100%; transition: transform 0.5s ease;">
     {{#if:{{{图1|}}}|
     {{#if:{{{图1|}}}|
     <div class="carousel-slide" style="min-width: 100%; height: 100%; position: relative;">
     <div class="carousel-slide" style="min-width: 100%; height: 100%; position: relative;">
       [[File:{{{图1}}}|center|350px|link=]]
       [[File:{{{图1}}}|center|class=carousel-img|link={{{图1跳转|}}}]]
      {{#if:{{{图1标题|}}}|<div class="carousel-caption">{{{图1标题}}}</div>}}
     </div>
     </div>
     }}
     }}
     {{#if:{{{图2|}}}|
     {{#if:{{{图2|}}}|
     <div class="carousel-slide" style="min-width: 100%; height: 100%; position: relative;">
     <div class="carousel-slide" style="min-width: 100%; height: 100%; position: relative;">
       [[File:{{{图2}}}|center|350px|link=]]
       [[File:{{{图2}}}|center|class=carousel-img|link={{{图2跳转|}}}]]
      {{#if:{{{图2标题|}}}|<div class="carousel-caption">{{{图2标题}}}</div>}}
     </div>
     </div>
     }}
     }}
     {{#if:{{{图3|}}}|
     {{#if:{{{图3|}}}|
     <div class="carousel-slide" style="min-width: 100%; height: 100%; position: relative;">
     <div class="carousel-slide" style="min-width: 100%; height: 100%; position: relative;">
       [[File:{{{图3}}}|center|350px|link=]]
       [[File:{{{图3}}}|center|class=carousel-img|link={{{图3跳转|}}}]]
      {{#if:{{{图3标题|}}}|<div class="carousel-caption">{{{图3标题}}}</div>}}
     </div>
     </div>
     }}
     }}
     {{#if:{{{图4|}}}|
     {{#if:{{{图4|}}}|
     <div class="carousel-slide" style="min-width: 100%; height: 100%; position: relative;">
     <div class="carousel-slide" style="min-width: 100%; height: 100%; position: relative;">
       [[File:{{{图4}}}|center|350px|link=]]
       [[File:{{{图4}}}|center|class=carousel-img|link={{{图4跳转|}}}]]
      {{#if:{{{图4标题|}}}|<div class="carousel-caption">{{{图4标题}}}</div>}}
     </div>
     </div>
     }}
     }}
   </div>
   </div>
    
    
   <!-- 左右切换按钮 -->
   <!-- 标题遮罩层 -->
   <button class="carousel-btn carousel-prev" style="position: absolute; left: 10px; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; padding: 10px 15px; cursor: pointer; font-size: 18px; border-radius: 3px;"></button>
   <div class="carousel-titles-overlay">
  <button class="carousel-btn carousel-next" style="position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; padding: 10px 15px; cursor: pointer; font-size: 18px; border-radius: 3px;"></button>
    <div class="carousel-titles-wrapper" style="position: relative; display: flex; align-items: center; padding: 0 50px;">
 
      <!-- 左切换按钮 -->
  <!-- 指示器 -->
      <div class="carousel-btn carousel-prev" style="position: absolute; left: 30px; top:40%; transform: translateY(-50%); cursor: pointer; z-index: 20; opacity: 0.85; transition: all 0.3s;">[[File:swiper_button_left.png|10px|link=]]</div>
  <div class="carousel-indicators" style="position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px;">
     
    {{#if:{{{图1|}}}|<span class="indicator active" data-slide="0" style="width: 12px; height: 12px; border-radius: 50%; background: white; cursor: pointer; opacity: 0.7;"></span>}}
      <!-- 标题容器 -->
    {{#if:{{{图2|}}}|<span class="indicator" data-slide="1" style="width: 12px; height: 12px; border-radius: 50%; background: white; cursor: pointer; opacity: 0.5;"></span>}}
      <div class="carousel-titles-container" style="display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 0 auto; max-width: calc(100% - 120px);">
    {{#if:{{{图3|}}}|<span class="indicator" data-slide="2" style="width: 12px; height: 12px; border-radius: 50%; background: white; cursor: pointer; opacity: 0.5;"></span>}}
        {{#if:{{{图1标题|}}}|
    {{#if:{{{图4|}}}|<span class="indicator" data-slide="3" style="width: 12px; height: 12px; border-radius: 50%; background: white; cursor: pointer; opacity: 0.5;"></span>}}
        <div class="carousel-title-item active" data-slide="0" style="flex: 1; max-width: 200px; cursor: pointer; min-width: 0;">
          <div class="title-text" style="color: white; font-size: 13px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;">{{{图1标题}}}</div>
          <div class="title-indicator" style="height: 2px; background: #ff6600; margin-top: 6px; transition: all 0.3s;"></div>
        </div>
        }}
        {{#if:{{{图2标题|}}}|
        <div class="carousel-title-item" data-slide="1" style="flex: 1; max-width: 200px; cursor: pointer; min-width: 0;">
          <div class="title-text" style="color: white; font-size: 13px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; opacity: 0.7;">{{{图2标题}}}</div>
          <div class="title-indicator" style="height: 2px; background: transparent; margin-top: 6px; transition: all 0.3s;"></div>
        </div>
        }}
        {{#if:{{{图3标题|}}}|
        <div class="carousel-title-item" data-slide="2" style="flex: 1; max-width: 200px; cursor: pointer; min-width: 0;">
          <div class="title-text" style="color: white; font-size: 13px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; opacity: 0.7;">{{{图3标题}}}</div>
          <div class="title-indicator" style="height: 2px; background: transparent; margin-top: 6px; transition: all 0.3s;"></div>
        </div>
        }}
        {{#if:{{{图4标题|}}}|
        <div class="carousel-title-item" data-slide="3" style="flex: 1; max-width: 200px; cursor: pointer; min-width: 0;">
          <div class="title-text" style="color: white; font-size: 13px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; opacity: 0.7;">{{{图4标题}}}</div>
          <div class="title-indicator" style="height: 2px; background: transparent; margin-top: 6px; transition: all 0.3s;"></div>
        </div>
        }}
      </div>
     
      <!-- 右切换按钮 -->
      <div class="carousel-btn carousel-next" style="position: absolute; right: 30px; top: 40%; transform: translateY(-50%); cursor: pointer; z-index: 20; opacity: 0.85; transition: all 0.3s;">[[File:swiper_button_right.png|10px|link=]]</div>
    </div>
   </div>
   </div>
</div></includeonly><noinclude>
</div>
</includeonly><noinclude>
{{面包屑|模板}}
{{面包屑|模板}}
{{轮播图
|图1=banner_001.jpg
|图1标题=2025年10月22日确定全球上线!
|图2=banner_002.jpg
|图2标题=事前登录正式开放
|图3=banner_003.jpg
|图3标题=《卡厄思夢境》官方社群媒体资讯
}}
[[分类:模板]]
[[分类:模板]]
</noinclude>
</noinclude>

2025年10月14日 (二) 16:57的最新版本

如果您发现WIKI上的错误,请加入:1033192730联系站点工作人员处理