测试页面:修订间差异

来自SOKA CAFE
 
(未显示2个用户的17个中间版本)
第1行: 第1行:
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>自适应轮播图</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
       
        .container {
            width: 90vw; /* 使用视口宽度 */
            max-width: 800px; /* 电脑端最大宽度 */
            min-width: 280px; /* 最小宽度 */
            height: auto;
            min-height: 120px; /* 最小高度 */
            aspect-ratio: 2.03; /* 保持原有270/133≈2.03的比例 */
            margin: 20px auto;
            background: #fff;
            border-radius: 12px;
            padding: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }
       
        .carousel {
            position: relative;
            width: 100%;
            height: 100%;
            border-radius: 8px;
            overflow: hidden;
        }
       
        .carousel-wrapper {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.5s ease;
        }
       
        .carousel-item {
            flex: 0 0 100%;
            width: 100%;
            height: 100%;
        }
       
        .carousel-link {
            display: block;
            width: 100%;
            height: 100%;
        }
       
        .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 保持图片比例并填充容器 */
            object-position: center;
        }
       
        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            background: rgba(0,0,0,0.4);
            color: #fff;
            border: none;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
        }
       
        .carousel-btn:hover {
            background: rgba(0,0,0,0.6);
        }
       
        .prev-btn {
            left: 12px;
        }
       
        .next-btn {
            right: 12px;
        }
       
        .carousel-indicators {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
        }
       
        .indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            cursor: pointer;
            transition: all 0.3s;
        }
       
        .indicator.active {
            background: #fff;
            transform: scale(1.2);
        }
       
        /* 平板设备 */
        @media (max-width: 1024px) {
            .container {
                width: 85vw;
                max-width: 600px;
                padding: 10px;
            }
           
            .carousel-btn {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }
        }
       
        /* 手机设备 */
        @media (max-width: 768px) {
            .container {
                width: 92vw;
                max-width: 500px;
                padding: 8px;
                border-radius: 10px;
                margin: 15px auto;
            }
           
            .carousel {
                border-radius: 6px;
            }
           
            .carousel-btn {
                width: 28px;
                height: 28px;
                font-size: 14px;
                opacity: 0.9;
            }
           
            .prev-btn {
                left: 8px;
            }
           
            .next-btn {
                right: 8px;
            }
           
            .carousel-indicators {
                bottom: 10px;
            }
           
            .indicator {
                width: 8px;
                height: 8px;
            }
        }
       
        /* 小手机设备 */
        @media (max-width: 480px) {
            .container {
                width: 94vw;
                min-width: 260px;
                padding: 6px;
                margin: 10px auto;
            }
           
            .carousel-btn {
                width: 24px;
                height: 24px;
                font-size: 12px;
            }
           
            .prev-btn {
                left: 5px;
            }
           
            .next-btn {
                right: 5px;
            }
           
            .indicator {
                width: 6px;
                height: 6px;
            }
        }
    </style>
</head>
<body>
    <div style="font-size: min(4vw, 26px); margin-top: 20px; text-align: center; font-family: serif; padding: 0 10px;">
        '''欢迎来到「SOKA CAFE——エア本中文维基」'''
    </div>
    <div style="font-size: min(3vw, 18px); margin-bottom: 15px; text-align: center; margin-top: 10px; padding: 0 10px;">
        ''頭がパーン@wiki:中華エア本支部''
    </div>
   
    <div class="container">
        <div class="carousel" id="carousel">
            <div class="carousel-wrapper" id="carouselWrapper">
                <div class="carousel-item">
                    <a href="https://soka.cafe/index.php?title=创学" class="carousel-link">
                        <img src="https://soka.cafe/Special:FilePath/解惑.jpg" alt="解惑">
                    </a>
                </div>
                <div class="carousel-item">
                    <a href="https://soka.cafe/index.php?title=维基观看与使用指南" class="carousel-link">
                        <img src="https://soka.cafe/Special:FilePath/导航1.1.jpg" alt="维基观看与使用指南">
                    </a>
                </div>
                <div class="carousel-item">
                    <a href="https://soka.cafe/index.php?title=入站须知" class="carousel-link">
                        <img src="https://soka.cafe/Special:FilePath/条责.jpg" alt="入站须知">
                    </a>
                </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>


<script>
    const carouselWrapper = document.getElementById("carouselWrapper");
    const prevBtn = document.getElementById("prevBtn");
    const nextBtn = document.getElementById("nextBtn");
    const indicators = document.getElementById("indicators");
    const carouselItems = document.querySelectorAll(".carousel-item");
    const itemCount = carouselItems.length;
    let currentIndex = 0;
    function renderIndicators() {
        indicators.innerHTML = "";
        for (let i = 0; i < itemCount; i++) {
            const indicator = document.createElement("div");
            indicator.className = `indicator ${i === currentIndex ? "active" : ""}`;
            indicator.addEventListener("click", () => goToSlide(i));
            indicators.appendChild(indicator);
        }
    }
    function goToSlide(index) {
        currentIndex = index;
        carouselWrapper.style.transform = `translateX(-${currentIndex * 100}%)`;
        renderIndicators();
    }
    function prevSlide() {
        currentIndex = (currentIndex - 1 + itemCount) % itemCount;
        goToSlide(currentIndex);
    }
    function nextSlide() {
        currentIndex = (currentIndex + 1) % itemCount;
        goToSlide(currentIndex);
    }
    let autoPlay = setInterval(nextSlide, 5000);
    const carousel = document.getElementById("carousel");
   
    // 鼠标悬停时暂停自动播放
    carousel.addEventListener("mouseenter", () => clearInterval(autoPlay));
    carousel.addEventListener("mouseleave", () => {
        clearInterval(autoPlay);
        autoPlay = setInterval(nextSlide, 5000);
    });
   
    // 触摸设备支持
    let startX = 0;
    let endX = 0;
   
    carousel.addEventListener("touchstart", (e) => {
        startX = e.touches[0].clientX;
        clearInterval(autoPlay);
    });
   
    carousel.addEventListener("touchend", (e) => {
        endX = e.changedTouches[0].clientX;
        if (startX - endX > 50) {
            nextSlide(); // 向左滑动
        } else if (endX - startX > 50) {
            prevSlide(); // 向右滑动
        }
        autoPlay = setInterval(nextSlide, 5000);
    });
    prevBtn.addEventListener("click", prevSlide);
    nextBtn.addEventListener("click", nextSlide);
   
    // 初始化
    renderIndicators();
   
    // 窗口大小变化时重新计算
    window.addEventListener("resize", () => {
        // 重新定位当前幻灯片
        goToSlide(currentIndex);
    });
</script>
</body>
</html>
----
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
    <div id="pageContainer" style="position: relative; width: 300px; height: 200px; border: 1px solid #000; overflow: hidden;">
        <div id="page1" style="position: absolute; width: 100%; height: 100%; background: #f0f0f0; text-align: center; line-height: 200px; font-size: 20px;">
            第一页
        </div>
        <div id="page2" style="position: absolute; width: 100%; height: 100%; background: #e0e0e0; text-align: center; line-height: 200px; font-size: 20px; left: 300px;">
            第二页
        </div>
    </div>
    <button onclick="turnPage()" style="margin-top: 10px;">← 翻页</button>
    <script>
        let isFirstPage = true;
        const page1 = document.getElementById('page1');
        const page2 = document.getElementById('page2');
        const speed = 5;
        function turnPage() {
            if (isFirstPage) {
                animatePage(page1, -300, page2, 0);
            } else {
                animatePage(page2, 300, page1, 0);
            }
            isFirstPage = !isFirstPage;
        }
        function animatePage(pageOut, targetOut, pageIn, targetIn) {
            let currentOut = parseInt(pageOut.style.left || 0);
            let currentIn = parseInt(pageIn.style.left || 300);
            function frame() {
                if (currentOut !== targetOut) {
                    currentOut += (targetOut - currentOut) > 0 ? speed : -speed;
                    if (Math.abs(currentOut - targetOut) < speed) currentOut = targetOut;
                    pageOut.style.left = currentOut + 'px';
                }
                if (currentIn !== targetIn) {
                    currentIn += (targetIn - currentIn) > 0 ? speed : -speed;
                    if (Math.abs(currentIn - targetIn) < speed) currentIn = targetIn;
                    pageIn.style.left = currentIn + 'px';
                }
                if (currentOut !== targetOut || currentIn !== targetIn) {
                    requestAnimationFrame(frame);
                }
            }
            requestAnimationFrame(frame);
        }
    </script>
</body>
</html>
----
</tabber>
|-|历史上的星期=
{{#switch: {{#time:w|+8hour}}
  |  0 =  
  |  0 =  
<div class="mini-block-container mini-block-list">
<div class="mini-block-container mini-block-list">
第145行: 第526行:
}}<br />
}}<br />


 
|-|活动公告=
 
 
 
<div style="font-family:Huiwen;text-align: center"><span style="color:#B7B7F5"><big><big></big><big><big><big><big>"</big></big></big><big></big></big></big></span><big>なぜかならば、われわれ世界の民众は生存の権利をもっております。<br>因为我们世界人民有生存的权利。而威胁其权利的是魔鬼和怪物!<br><div style="text-align: right">——户田城圣</div></div>
 
<div class="mini-block">
<div class="mini-block">
<tabber>
{{栏目块
|-|所有分区=
|图片=[[File:RCR_LOGO_V1.1.png]]
<div class="mini-block-container mini-block-list">
|标题=[[【合作告知】宗教再生启示录_~_Re:Creation_Revelation《宗教都市祭II》|宗教都市祭II开催!]]
<div class="mini-block">
|内容=久本的虚拟化身“Paru”悬浮在宗教都市的圣殿中,脚下是由数以百万记的信徒们的祈祷所化作成的铁链。
<div style="font-size: 50px; font-weight: 200; text-align: right; height: 0; color: #f1f1f1; user-select: none; margin-bottom: 0">Archive</div>
在这片虚无的大地中,一道裂痕撕开了穹顶,《激突!美食赛跑!》的音乐,轰鸣而至……
<span class="mini-block-title">[[文件:Soka.png|25x25px|无框]] 现实资料·档案区
|详情=【合作告知】宗教再生启示录_~_Re:Creation_Revelation《宗教都市祭II》
<div id="left-column">
}}
<li class="mdui-ripple">[[人物图鉴|🖼️人物图鉴]]</li>
<li class="mdui-ripple">[[团体势力|🎗团体势力]]</li>
<li class="mdui-ripple">[[登场作品|📽登场作品]]</li>
</div>
</div>
<div id="right-column">
</tabber>
<li class="mdui-ripple">[[历史事件|🗓历史事件]]</li>
<li class="mdui-ripple">[[地点区域|🏙地点区域]]</li>
[[文件:首页头图.png|200x200px|无框]]
</div>
</div>
</div>
</div>
<div class="mini-block">
<div style="font-size: 50px; font-weight: 200; text-align: right; height: 0; color: #f1f1f1; user-select: none; margin-bottom: 0">Creation</div>
<span class="mini-block-title">[[文件:Hachiyourenge.svg.png|25x25px|无框]]  网络二创·创作区
<div id="left-column">
<li class="mdui-ripple">[[词典概念|📚词典概念]]</li>
<li class="mdui-ripple">[[作品推荐|🎉作品推荐]]</li>
<li class="mdui-ripple">[[创作团体|🪶创作团体]]</li>
</div>
</div>
<div id="right-column">
<li class="mdui-ripple">[[创作作者|👨‍👩‍👧‍👧创作作者]]</li>
<li class="mdui-ripple">[[世界设定|🌐世界设定]]</li>
[[文件:首页头图1.png|200x200px|无框|左]]
</div>
</div>
</div>
</div>
</tabber>
</div>




{{CSS|content=
 
<nowiki>
 
body{background: linear-gradient(to right, #98F5FF, #FFEFD5, #FFDDDD)}
 
#mw-content-wrapper{background: none;}
 
#mw-content{background-color: rgba(255, 255, 255, 0.5);}
 
#site-navigation.sidebar-chunk{background-color: rgba(255, 255, 255, 0.5);}
#site-tools.sidebar-chunk{background-color: rgba(255, 255, 255, 0.5);}
#page-tools.sidebar-chunk{background-color: rgba(255, 255, 255, 0.5);}
#catlinks-sidebar.sidebar-chunk{background-color: rgba(255, 255, 255, 0.5);}
</nowiki>
}}


<div style="font-family:Yuesong">
<div style="font-family:Yuesong">
第205行: 第556行:
字体测试
字体测试
</div>
</div>
<div style="font-family: serif;">
字体测试
</div>
<div>
{{#evu:https://www.youtube.com/watch?v=eAORm-8b1Eg
{{#evu:https://www.youtube.com/watch?v=eAORm-8b1Eg
|alignment=right
|alignment=right
第213行: 第568行:
|alignment=right
|alignment=right
}}
}}
</div>
----
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
==表格测试==
{| class="wikitable sortable mw-collapsible"
|'''申请号'''
|CN951080741
|'''申请日期'''
|1995-07-28
|-
|'''公告号'''
|CN1141833A
|'''公布/公告日期'''
|1997-02-05
|-
|'''发明人'''
|周寿坤、王志泽、孙正江
|'''申请(专利权)人'''
|北京汇佳物产技术公司
|-
|'''专利代理人'''
|何润华
|'''专利代理机构'''
|北京申翔知识产权服务公司专利代理部
|-
|'''专利类型'''
|发明专利
|'''主分类号'''
|B23K3/047
|-
|'''住所'''
| colspan="3" |北京市8756信箱
|-
|'''法律状态'''
| colspan="3" | -
|-
|'''摘要'''
| colspan="3" |本发明是对另一在先专利(ZL 94 21966.X)的改进方案。在焊枪装置上的改进是取消了焊针尾丝,和用于连接尾丝的衔接器、退焊针尾丝的滑杆。导电通路的这一部分直接由焊针连接卡爪、大簧座、大簧、导电套与穿过壳体的外接电源线连接。大簧兼作导电线圈和复位弹簧使用,通电时使内套磁化,吸引大簧座位移并带动卡爪夹带焊针在瓷环卡爪中拉弧,断电后使焊针复位固结焊口。自动拉弧钎焊机包括焊枪、焊针和自控电路。自控电路至少设置定时电路,还可串联过流保护电路,低于规定电压自锁电路、闪光电路。
|}
[[File:RCR_LOGO_V1.1.png|400px|居中|class=blur]]


[[分类:编辑帮助]]
[[分类:编辑帮助]]

2026年1月27日 (二) 15:33的最新版本

自适应轮播图

'''欢迎来到「SOKA CAFE——エア本中文维基」'''
''頭がパーン@wiki:中華エア本支部''






第一页
第二页




</tabber> |-|历史上的星期=

【星期日】池田大作发表演讲《光荣属于战斗的学生部》

1968年9月8日,在创价学会第11届学生部大会中,池田大作面对一万数千名学生发表了历时1小时17分钟的演讲——《光荣属于战斗的学生部》,为创价学会推动中日邦交正常化作出重要贡献。

【星期日】第二次宗门事件正式拉开帷幕


第二次宗门事件,是创价学会与日莲正宗之间的矛盾已彻底无法调和的情况下所展开的最终决战。


|-|活动公告=

久本的虚拟化身“Paru”悬浮在宗教都市的圣殿中,脚下是由数以百万记的信徒们的祈祷所化作成的铁链。 在这片虚无的大地中,一道裂痕撕开了穹顶,《激突!美食赛跑!》的音乐,轰鸣而至……

</tabber>





字体测试

字体测试

字体测试
































表格测试

申请号 CN951080741 申请日期 1995-07-28
公告号 CN1141833A 公布/公告日期 1997-02-05
发明人 周寿坤、王志泽、孙正江 申请(专利权)人 北京汇佳物产技术公司
专利代理人 何润华 专利代理机构 北京申翔知识产权服务公司专利代理部
专利类型 发明专利 主分类号 B23K3/047
住所 北京市8756信箱
法律状态 -
摘要 本发明是对另一在先专利(ZL 94 21966.X)的改进方案。在焊枪装置上的改进是取消了焊针尾丝,和用于连接尾丝的衔接器、退焊针尾丝的滑杆。导电通路的这一部分直接由焊针连接卡爪、大簧座、大簧、导电套与穿过壳体的外接电源线连接。大簧兼作导电线圈和复位弹簧使用,通电时使内套磁化,吸引大簧座位移并带动卡爪夹带焊针在瓷环卡爪中拉弧,断电后使焊针复位固结焊口。自动拉弧钎焊机包括焊枪、焊针和自控电路。自控电路至少设置定时电路,还可串联过流保护电路,低于规定电压自锁电路、闪光电路。