男的舔女的下面视频在线播放-少妇愉情理仑片高潮日本-久久久久久国产一区二区三区-麻豆精品一区二区综合-国产精品超碰在线观看-网红极品女神精品视频在线-国产亚洲综合777-高清性视频一区二区播放-中文字幕第一页亚洲天堂

Discuz! 官方交流社區(qū)

標(biāo)題: 論壇設(shè)置寬版之后,公告跟下面欄目是正常切換,但是頭部沒(méi)變化,請(qǐng)問(wèn)是什么情況? [打印本頁(yè)]

作者: windy4038    時(shí)間: 2025-11-10 15:32
標(biāo)題: 論壇設(shè)置寬版之后,公告跟下面欄目是正常切換,但是頭部沒(méi)變化,請(qǐng)問(wèn)是什么情況?

作者: 鴻茂傳媒    時(shí)間: 2025-11-10 15:34
后臺(tái)更新緩存在試試
作者: 湖中沉    時(shí)間: 2025-11-10 15:42
非默認(rèn)模板的話(huà),大概率是模板兼容問(wèn)題;
作者: windy4038    時(shí)間: 2025-11-10 15:49
鴻茂傳媒 發(fā)表于 2025-11-10 15:34
后臺(tái)更新緩存在試試

已經(jīng)更新過(guò)緩存 還是不行,基本靜態(tài)HTML的代碼 了一部分  是CSS沖突 還是代碼問(wèn)題?
作者: windy4038    時(shí)間: 2025-11-10 15:51
湖中沉 發(fā)表于 2025-11-10 15:42
非默認(rèn)模板的話(huà),大概率是模板兼容問(wèn)題;

- -我首頁(yè)就時(shí)增加了 廣告用了靜態(tài)HTML
作者: windy4038    時(shí)間: 2025-11-10 16:10
      
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: #f5f7fa;
            color: #333;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
        }
        
        header {
            text-align: center;
            margin-bottom: 40px;
        }
        
        header h1 {
            font-size: 2.2rem;
            margin-bottom: 15px;
            color: #2c3e50;
        }
        
        header p {
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
            color: #7f8c8d;
        }
        
        .notice-container {
            width: 100%;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 40px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            background: white;
            border: 1px solid #e0e0e0;
        }
        
        .notice-board {
            height: 220px;
            overflow: hidden;
            position: relative;
        }
        
        .notice-list {
            list-style: none;
            position: relative;
            transition: transform 0.5s ease-in-out;
        }
        
        .notice-list li {
            height: 220px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 20px 25px;
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.3s;
        }
        
        .notice-list li:hover {
            background: #f9f9f9;
        }
        
        .notice-title {
            font-size: 1.2rem;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .notice-title i {
            color: #3498db;
        }
        
        .notice-content {
            color: #555;
            line-height: 1.6;
            margin-bottom: 12px;
        }
        
        .notice-date {
            color: #888;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .notice-indicators {
            display: flex;
            justify-content: center;
            padding: 15px;
            background: #f8f9fa;
            border-top: 1px solid #eee;
        }
        
        .indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #ddd;
            margin: 0 5px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .indicator.active {
            background: #3498db;
            transform: scale(1.2);
        }
        
        .new {
            background: #f0f8ff;
            border-left: 4px solid #3498db;
        }
        
        .demo-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        
        .demo-box {
            background: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        }
        
        .demo-box h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .demo-box p {
            color: #555;
            line-height: 1.6;
        }
        
        footer {
            margin-top: 50px;
            text-align: center;
            color: #7f8c8d;
            padding: 20px;
            font-size: 0.9rem;
            width: 100%;
        }
        
        /* 響應(yīng)式設(shè)計(jì) */
        @media (max-width: 768px) {
            header h1 {
                font-size: 1.8rem;
            }
            
            .notice-board {
                height: 200px;
            }
            
            .notice-list li {
                height: 200px;
                padding: 18px 20px;
            }
            
            .notice-title {
                font-size: 1.1rem;
            }
        }
        
        @media (max-width: 480px) {
            header h1 {
                font-size: 1.6rem;
            }
            
            .notice-board {
                height: 180px;
            }
            
            .notice-list li {
                height: 180px;
                padding: 15px;
            }
            
            .notice-title {
                font-size: 1rem;
            }
            
            .notice-content {
                font-size: 0.9rem;
            }
        }
    </style>

    <div class="container">
              
        <div class="notice-container">
            <div class="notice-board">
                <ul class="notice-list" id="noticeList">
                    <li >
                        <div class="notice-title"></i> 系統(tǒng)維護(hù)通知</div>
                        <div class="notice-content">為了提供更優(yōu)質(zhì)的服務(wù),我們將在本周六凌晨2:00-6:00進(jìn)行系統(tǒng)維護(hù),期間服務(wù)將短暫不可用。</div>
                        <div class="notice-date"><i class="far fa-clock"></i> 2023-10-15</div>
                    </li>
                    <li>
                        <div class="notice-title"><i class="fas fa-star"></i> 新功能上線(xiàn)</div>
                        <div class="notice-content">我們很高興地宣布,新版用戶(hù)中心已上線(xiàn),新增多項(xiàng)實(shí)用功能,歡迎體驗(yàn)并提供寶貴意見(jiàn)。</div>
                        <div class="notice-date"><i class="far fa-clock"></i> 2023-10-12</div>
                    </li>
                    <li>
                        <div class="notice-title"><i class="fas fa-flag"></i> 國(guó)慶節(jié)假期安排</div>
                        <div class="notice-content">根據(jù)國(guó)家法定節(jié)假日安排,我們的客服中心將于10月1日至10月7日放假,10月8日恢復(fù)正常服務(wù)。</div>
                        <div class="notice-date"><i class="far fa-clock"></i> 2023-09-28</div>
                    </li>
                    <li>
                        <div class="notice-title"><i class="fas fa-shield-alt"></i> 安全提醒</div>
                        <div class="notice-content">近期發(fā)現(xiàn)有不法分子冒充我司工作人員進(jìn)行詐騙,請(qǐng)各位用戶(hù)提高警惕,謹(jǐn)防上當(dāng)受騙。</div>
                        <div class="notice-date"><i class="far fa-clock"></i> 2023-09-25</div>
                    </li>
                    <li>
                        <div class="notice-title"><i class="fas fa-sync-alt"></i> 產(chǎn)品更新日志</div>
                        <div class="notice-content">本次更新修復(fù)了已知的3個(gè)問(wèn)題,優(yōu)化了系統(tǒng)性能,提升了用戶(hù)體驗(yàn)。詳細(xì)更新內(nèi)容請(qǐng)查看更新日志。</div>
                        <div class="notice-date"><i class="far fa-clock"></i> 2023-09-20</div>
                    </li>
                </ul>
            </div>
            
            <div class="notice-indicators" id="indicators">
                <!-- 指示器將由JS動(dòng)態(tài)生成 -->
            </div>
        </div>
        
            </div>

  

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const noticeList = document.getElementById('noticeList');
            const indicatorsContainer = document.getElementById('indicators');
            
            const notices = noticeList.querySelectorAll('li');
            const noticeCount = notices.length;
            
            // 動(dòng)態(tài)獲取公告高度
            let noticeHeight = notices[0] ? notices[0].offsetHeight : 220;
            let currentIndex = 0;
            let autoScrollInterval;
            
            // 初始化指示器
            function initIndicators() {
                indicatorsContainer.innerHTML = '';
                for (let i = 0; i < noticeCount; i++) {
                    const indicator = document.createElement('div');
                    indicator.className = 'indicator';
                    if (i === currentIndex) {
                        indicator.classList.add('active');
                    }
                    indicator.addEventListener('click', () => {
                        goToNotice(i);
                    });
                    indicatorsContainer.appendChild(indicator);
                }
            }
            
            // 更新指示器狀態(tài)
            function updateIndicators() {
                const indicators = document.querySelectorAll('.indicator');
                indicators.forEach((indicator, index) => {
                    if (index === currentIndex) {
                        indicator.classList.add('active');
                    } else {
                        indicator.classList.remove('active');
                    }
                });
            }
            
            // 滾動(dòng)到指定公告
            function goToNotice(index) {
                currentIndex = index;
                const translateY = -currentIndex * noticeHeight;
                noticeList.style.transform = `translateY(${translateY}px)`;
                updateIndicators();
            }
            
            // 滾動(dòng)到下一條公告
            function nextNotice() {
                currentIndex = (currentIndex + 1) % noticeCount;
                goToNotice(currentIndex);
            }
            
            // 開(kāi)始自動(dòng)滾動(dòng)
            function startAutoScroll() {
                autoScrollInterval = setInterval(() => {
                    nextNotice();
                }, 4000);
            }
            
            // 鼠標(biāo)懸停時(shí)暫停自動(dòng)滾動(dòng)
            noticeList.addEventListener('mouseenter', () => {
                clearInterval(autoScrollInterval);
            });
            
            // 鼠標(biāo)離開(kāi)時(shí)恢復(fù)自動(dòng)滾動(dòng)
            noticeList.addEventListener('mouseleave', () => {
                startAutoScroll();
            });
            
            // 窗口大小變化時(shí)重新計(jì)算高度
            window.addEventListener('resize', () => {
                const newHeight = notices[0] ? notices[0].offsetHeight : 220;
                if (newHeight !== noticeHeight) {
                    noticeHeight = newHeight;
                    goToNotice(currentIndex); // 重新定位當(dāng)前公告
                }
            });
            
            // 初始化
            if (noticeCount > 0) {
                initIndicators();
                startAutoScroll();
            }
        });
    </script>
剛剛用了默認(rèn)模板還是出現(xiàn)同樣的問(wèn)題 我添加的靜態(tài)公告代碼是這樣子的
作者: 湖中沉    時(shí)間: 2025-11-10 16:16
windy4038 發(fā)表于 2025-11-10 16:10
* {
            margin: 0;
            padding: 0;

你自己加的這個(gè)代碼里就有限制頭部最大寬度的樣式定義,所以你自己這段代碼造成的
作者: windy4038    時(shí)間: 2025-11-10 16:35
湖中沉 發(fā)表于 2025-11-10 16:16
你自己加的這個(gè)代碼里就有限制頭部最大寬度的樣式定義,所以你自己這段代碼造成的 ...

- -嘗試了 把這整個(gè)代碼都刪除了 然后更新緩存 還是不行 同樣的老問(wèn)題
作者: 湖中沉    時(shí)間: 2025-11-10 16:37
windy4038 發(fā)表于 2025-11-10 16:35
- -嘗試了 把這整個(gè)代碼都刪除了 然后更新緩存 還是不行 同樣的老問(wèn)題

你大概率還有其他代碼限制唄,DZ標(biāo)準(zhǔn)產(chǎn)品是肯定沒(méi)問(wèn)題的,與其在這猜,你不如直接放出地址更實(shí)際
作者: windy4038    時(shí)間: 2025-11-10 16:51
湖中沉 發(fā)表于 2025-11-10 16:37
你大概率還有其他代碼限制唄,DZ標(biāo)準(zhǔn)產(chǎn)品是肯定沒(méi)問(wèn)題的,與其在這猜,你不如直接放出地址更實(shí)際 ...

- -因?yàn)槭蔷钟蚓W(wǎng)沒(méi)放出來(lái) 所以發(fā)不了
作者: 科站網(wǎng)    時(shí)間: 2025-11-10 17:54
實(shí)在有問(wèn)題找模板作者啊
作者: artery    時(shí)間: 2025-11-13 10:01
  1. max-width: 1200px;
復(fù)制代碼
把這個(gè)刪除試試




歡迎光臨 Discuz! 官方交流社區(qū) (http://m.sdtechgong.com.cn/) Powered by Discuz! X5.0