测试:修订间差异

来自SOKA CAFE
第16行: 第16行:
</div>
</div>
</div>
</div>




第37行: 第36行:
          
          
         body {
         body {
            padding: 20px;
             background: #f5f5f5;
             background: #f5f5f5;
            padding: 20px 0;
        }
       
        .header-container {
            width: 100%;
            padding: 0 20px;
            margin-bottom: 20px;
        }
       
        .carousel-section {
            width: 100%;
            display: flex;
            justify-content: flex-start; /* 强制在最左 */
            padding-left: 0;
         }
         }
          
          
         .container {
         .container {
             width: 33.33vw; /* 电脑/平板端占屏幕1/3 */
             background: transparent; /* 无背景 */
             max-width: 400px; /* 设置最大宽度限制 */
            border-radius: 4px; /* 圆角度4px */
            min-width: 280px; /* 最小宽度 */
             padding: 0;
            height: auto;
            box-shadow: none;
            min-height: 120px; /* 最小高度 */
            overflow: hidden;
            aspect-ratio: 2.03; /* 保持原有270/133≈2.03的比例 */
            margin: 0;
             margin: 0; /* 移除auto,实现左对齐 */
        }
            background: #fff;
       
            border-radius: 4px; /* 调整为4px圆角 */
        /* 电脑端 - 全屏三分之一 */
             padding: 6px; /* 减少内边距以最大化图片显示 */
        @media (min-width: 1025px) {
             box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            .container {
             float: left; /* 强制左对齐 */
                width: calc(100vw / 3); /* 全屏的三分之一 */
             clear: both; /* 清除浮动影响 */
                max-width: none;
                min-width: auto;
                aspect-ratio: 2.03;
                margin-right: auto;
            }
           
            .header-container {
                padding-left: calc(100vw / 3 + 40px); /* 标题与轮播图对齐 */
            }
        }
       
        /* 平板端 - 全屏三分之一 */
        @media (min-width: 769px) and (max-width: 1024px) {
             .container {
                width: calc(100vw / 3); /* 全屏的三分之一 */
                max-width: none;
                min-width: auto;
                aspect-ratio: 2.03;
                margin-right: auto;
             }
           
            .header-container {
                padding-left: calc(100vw / 3 + 30px);
            }
        }
       
        /* 手机端 - 保持原有大小 */
        @media (max-width: 768px) {
             .container {
                width: 92vw;
                max-width: 500px;
                aspect-ratio: 2.03;
                margin: 15px auto;
             }
           
            .carousel-section {
                justify-content: center;
            }
           
            .header-container {
                padding-left: 0;
                text-align: center;
            }
        }
       
        /* 小手机设备 */
        @media (max-width: 480px) {
             .container {
                width: 94vw;
                min-width: 260px;
                aspect-ratio: 2.03;
                margin: 10px auto;
            }
         }
         }
          
          
第61行: 第125行:
             width: 100%;
             width: 100%;
             height: 100%;
             height: 100%;
             border-radius: 2px; /* 内部圆角更小 */
             border-radius: 4px;
             overflow: hidden;
             overflow: hidden;
         }
         }
第87行: 第151行:
             width: 100%;
             width: 100%;
             height: 100%;
             height: 100%;
             object-fit: cover; /* 保持图片比例并填充容器 */
             object-fit: cover;
             object-position: center;
             object-position: center;
            display: block;
         }
         }
          
          
第95行: 第160行:
             top: 50%;
             top: 50%;
             transform: translateY(-50%);
             transform: translateY(-50%);
             width: 28px; /* 缩小按钮 */
             width: 36px;
             height: 28px;
             height: 36px;
             background: rgba(0,0,0,0.3);
             background: rgba(0,0,0,0.4);
             color: #fff;
             color: #fff;
             border: none;
             border: none;
             border-radius: 50%;
             border-radius: 50%;
             font-size: 14px;
             font-size: 18px;
             cursor: pointer;
             cursor: pointer;
             z-index: 10;
             z-index: 10;
第107行: 第172行:
             align-items: center;
             align-items: center;
             justify-content: center;
             justify-content: center;
             transition: background 0.3s, opacity 0.3s;
             transition: background 0.3s;
            opacity: 0.7; /* 默认半透明 */
         }
         }
          
          
         .carousel-btn:hover {
         .carousel-btn:hover {
             background: rgba(0,0,0,0.6);
             background: rgba(0,0,0,0.6);
            opacity: 1; /* 悬停时完全不透明 */
         }
         }
          
          
         .prev-btn {
         .prev-btn {
             left: 8px;
             left: 12px;
         }
         }
          
          
         .next-btn {
         .next-btn {
             right: 8px;
             right: 12px;
         }
         }
          
          
         .carousel-indicators {
         .carousel-indicators {
             position: absolute;
             position: absolute;
             bottom: 8px;
             bottom: 15px;
             left: 50%;
             left: 50%;
             transform: translateX(-50%);
             transform: translateX(-50%);
             display: flex;
             display: flex;
             gap: 6px;
             gap: 8px;
         }
         }
          
          
         .indicator {
         .indicator {
             width: 8px;
             width: 10px;
             height: 8px;
             height: 10px;
             border-radius: 50%;
             border-radius: 50%;
             background: rgba(255,255,255,0.5);
             background: rgba(255,255,255,0.5);
第147行: 第210行:
         }
         }
          
          
         /* 大屏设备 - 保持1/3宽度 */
         /* 平板设备按钮调整 */
        @media (min-width: 1025px) {
         @media (max-width: 1024px) {
            .container {
                width: 33.33vw;
                max-width: 400px;
                margin-left: 20px; /* 左侧留一些空间 */
            }
        }
       
        /* 平板设备 - 保持1/3宽度 */
         @media (min-width: 769px) and (max-width: 1024px) {
            .container {
                width: 33.33vw;
                max-width: 350px;
                margin-left: 15px;
            }
           
             .carousel-btn {
             .carousel-btn {
                 width: 26px;
                 width: 32px;
                 height: 26px;
                 height: 32px;
                 font-size: 12px;
                 font-size: 16px;
             }
             }
         }
         }
          
          
         /* 手机设备 - 恢复到原响应式设计 */
         /* 手机设备按钮调整 */
         @media (max-width: 768px) {
         @media (max-width: 768px) {
            .container {
                width: 92vw;
                max-width: 500px;
                margin: 0 auto; /* 手机端居中显示 */
                float: none; /* 取消浮动 */
                padding: 8px;
                border-radius: 4px;
            }
           
            .carousel {
                border-radius: 2px;
            }
           
             .carousel-btn {
             .carousel-btn {
                 width: 24px;
                 width: 28px;
                 height: 24px;
                 height: 28px;
                 font-size: 12px;
                 font-size: 14px;
                 opacity: 0.8;
                 opacity: 0.9;
             }
             }
              
              
             .prev-btn {
             .prev-btn {
                 left: 6px;
                 left: 8px;
             }
             }
              
              
             .next-btn {
             .next-btn {
                 right: 6px;
                 right: 8px;
             }
             }
              
              
             .carousel-indicators {
             .carousel-indicators {
                 bottom: 8px;
                 bottom: 10px;
             }
             }
              
              
             .indicator {
             .indicator {
                 width: 6px;
                 width: 8px;
                 height: 6px;
                 height: 8px;
             }
             }
         }
         }
          
          
         /* 小手机设备 */
         /* 小手机设备按钮调整 */
         @media (max-width: 480px) {
         @media (max-width: 480px) {
            .container {
                width: 94vw;
                min-width: 260px;
                padding: 6px;
                margin: 0 auto; /* 手机端居中显示 */
            }
           
             .carousel-btn {
             .carousel-btn {
                 width: 22px;
                 width: 24px;
                 height: 22px;
                 height: 24px;
                 font-size: 10px;
                 font-size: 12px;
             }
             }
              
              
             .prev-btn {
             .prev-btn {
                 left: 4px;
                 left: 5px;
             }
             }
              
              
             .next-btn {
             .next-btn {
                 right: 4px;
                 right: 5px;
             }
             }
              
              
             .indicator {
             .indicator {
                 width: 5px;
                 width: 6px;
                 height: 5px;
                 height: 6px;
             }
             }
         }
         }
          
          
         /* 清除浮动容器 */
         /* 标题样式 */
         .clearfix::after {
         .main-title {
             content: "";
            font-size: min(4vw, 26px);
             display: table;
            margin-top: 20px;
             clear: both;
            text-align: left;
            font-family: serif;
            padding: 0 10px;
            color: #333;
        }
       
        .sub-title {
             font-size: min(3vw, 18px);
            margin-bottom: 15px;
            text-align: left;
            margin-top: 10px;
            padding: 0 10px;
             color: #666;
        }
       
        @media (max-width: 768px) {
             .main-title, .sub-title {
                text-align: center;
            }
         }
         }
     </style>
     </style>
</head>
</head>
<body>
<body>  
     <div class="container">
     <div class="carousel-section">
        <div class="carousel" id="carousel">
        <div class="container">
            <div class="carousel-wrapper" id="carouselWrapper">
            <div class="carousel" id="carousel">
                <div class="carousel-item">
                <div class="carousel-wrapper" id="carouselWrapper">
                    <a href="https://soka.cafe/index.php?title=创学" class="carousel-link">
                    <div class="carousel-item">
                        <img src="https://soka.cafe/Special:FilePath/解惑.jpg" alt="解惑">
                        <a href="https://soka.cafe/index.php?title=创学" class="carousel-link">
                    </a>
                            <img src="https://soka.cafe/Special:FilePath/解惑.jpg" alt="解惑">
                </div>
                        </a>
                <div class="carousel-item">
                    </div>
                    <a href="https://soka.cafe/index.php?title=维基观看与使用指南" class="carousel-link">
                    <div class="carousel-item">
                        <img src="https://soka.cafe/Special:FilePath/导航1.1.jpg" alt="维基观看与使用指南">
                        <a href="https://soka.cafe/index.php?title=维基观看与使用指南" class="carousel-link">
                    </a>
                            <img src="https://soka.cafe/Special:FilePath/导航1.1.jpg" alt="维基观看与使用指南">
                </div>
                        </a>
                <div class="carousel-item">
                    </div>
                    <a href="https://soka.cafe/index.php?title=入站须知" class="carousel-link">
                    <div class="carousel-item">
                        <img src="https://soka.cafe/Special:FilePath/条责.jpg" alt="入站须知">
                        <a href="https://soka.cafe/index.php?title=入站须知" class="carousel-link">
                     </a>
                            <img src="https://soka.cafe/Special:FilePath/条责.jpg" alt="入站须知">
                        </a>
                     </div>
                 </div>
                 </div>
                <button class="carousel-btn prev-btn" id="prevBtn">&lt;</button>
                <button class="carousel-btn next-btn" id="nextBtn">&gt;</button>
                <div class="carousel-indicators" id="indicators"></div>
             </div>
             </div>
            <button class="carousel-btn prev-btn" id="prevBtn">&lt;</button>
            <button class="carousel-btn next-btn" id="nextBtn">&gt;</button>
            <div class="carousel-indicators" id="indicators"></div>
         </div>
         </div>
     </div>
     </div>
第346行: 第394行:
     // 窗口大小变化时重新计算
     // 窗口大小变化时重新计算
     window.addEventListener("resize", () => {
     window.addEventListener("resize", () => {
        // 重新定位当前幻灯片
         goToSlide(currentIndex);
         goToSlide(currentIndex);
     });
     });

2026年1月27日 (二) 17:43的版本

欢迎来到「SOKA CAFE——エア本中文维基」
頭がパーン@wiki:中華エア本支部
◆ 本站点是以创价学会成员为核心、以创价学会及其相关团体为线索组织,进行讨论、研究和二次创作的公益性交流论坛维基百科网站。
◆ 本站点仅作记录和展示由宗教及相关人物衍生出的亚文化,非正式宗教维基,请注意!
◆ 本站点致力于营造和谐的社区环境,并热烈期待和欢迎任何人参与建设我们的网站!
◆ 本站点中所遇到的任何问题,均可通过下方信息联系我们。让我们一起共同来建设SOKA CAFE吧!
「よく来たわね、いらしゃい。」

本站点当前已有98个条目,3,154次编辑,2个活跃成员,上传了758个文件




自适应轮播图


Archive
📚 资料与档案
  • Creation
    🪶 二创与设定
  • Schedule
    🗓︎ 日程参照
    Create

    💻 创建页面

    感谢您对SOKA CAFE的编辑贡献!但也请在过程中务必依照创作协议及版权,遵循CC BY-SA 3.0协议!

    准备好了?来尝试创建页面吧!
     
    Notice

    ⚠️ 入站须知

    Soka Cafe一直是一个合作性、公益性的网站,我们致力于营造和谐的社区环境,并热情地欢迎任何人参与我们之间的创作,不论您的信仰、外表、地域.... 为了打造一个和谐的、无骚扰的社区环境,请通读入站须知,了解网站的性质及规则。

    Plan

    📄 任务计划

    Soka Cafe的基本底层已大体完确! 现在的最紧要的人物是登场作品分区的规范及完成度!这对创学新人入坑的帮助极其重要! 没有相关技术不要紧,请使用“可视化编辑器”来进行编辑!如果有任何技术问题请在页面下方获取我们的联系方式!