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

12下一頁
返回列表 發(fā)帖
查看: 1194|回復: 11

[求助] 論壇設置寬版之后,公告跟下面欄目是正常切換,但是頭部沒變化,請問是什么情況?

2

主題

6

回帖

0

粉絲

初學乍練

貢獻
0 點
金幣
5 個
樓主
發(fā)表于 2025-11-10 15:32:20 |廣東| 只看樓主 |倒序瀏覽 |閱讀模式
調成寬板之后會出現(xiàn)頭部沒有跟隨的情況,但是其他欄目是正常沒問題的
調成寬板之后會出現(xiàn)頭部沒有跟隨的情況,但是其他欄目是正常沒問題的
窄版是完全正常的,請問是什么原因導致?需要怎么設置
窄版是完全正常的,請問是什么原因導致?需要怎么設置
我知道答案 回答被采納將會獲得1 貢獻 已有11人回答
回復

使用道具 舉報

6

主題

1653

回帖

4

粉絲

應用開發(fā)者

貢獻
47 點
金幣
180 個
產品版本
X5.0+
QQ
沙發(fā)
發(fā)表于 2025-11-10 15:34:23 |浙江| 只看Ta
后臺更新緩存在試試
回復

使用道具 舉報

45

主題

6737

回帖

18

粉絲

應用開發(fā)者

貢獻
666 點
金幣
1460 個
產品版本
X5.0+
QQ
板凳
發(fā)表于 2025-11-10 15:42:23 |浙江來自手機 | 只看Ta
非默認模板的話,大概率是模板兼容問題
回復

使用道具 舉報

2

主題

6

回帖

0

粉絲

初學乍練

貢獻
0 點
金幣
5 個
地板
 樓主| 發(fā)表于 2025-11-10 15:49:04 |廣東| 只看Ta

已經更新過緩存 還是不行,基本靜態(tài)HTML的代碼 了一部分  是CSS沖突 還是代碼問題?
回復

使用道具 舉報

2

主題

6

回帖

0

粉絲

初學乍練

貢獻
0 點
金幣
5 個
5#
 樓主| 發(fā)表于 2025-11-10 15:51:05 |廣東| 只看Ta
湖中沉 發(fā)表于 2025-11-10 15:42
非默認模板的話,大概率是模板兼容問題;

- -我首頁就時增加了 廣告用了靜態(tài)HTML
回復

使用道具 舉報

2

主題

6

回帖

0

粉絲

初學乍練

貢獻
0 點
金幣
5 個
6#
 樓主| 發(fā)表于 2025-11-10 16:10:26 |廣東| 只看Ta
      
    <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%;
        }
        
        /* 響應式設計 */
        @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)維護通知</div>
                        <div class="notice-content">為了提供更優(yōu)質的服務,我們將在本周六凌晨2:00-6:00進行系統(tǒng)維護,期間服務將短暫不可用。</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> 新功能上線</div>
                        <div class="notice-content">我們很高興地宣布,新版用戶中心已上線,新增多項實用功能,歡迎體驗并提供寶貴意見。</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> 國慶節(jié)假期安排</div>
                        <div class="notice-content">根據(jù)國家法定節(jié)假日安排,我們的客服中心將于10月1日至10月7日放假,10月8日恢復正常服務。</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)有不法分子冒充我司工作人員進行詐騙,請各位用戶提高警惕,謹防上當受騙。</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> 產品更新日志</div>
                        <div class="notice-content">本次更新修復了已知的3個問題,優(yōu)化了系統(tǒ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動態(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;
            
            // 動態(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');
                    }
                });
            }
            
            // 滾動到指定公告
            function goToNotice(index) {
                currentIndex = index;
                const translateY = -currentIndex * noticeHeight;
                noticeList.style.transform = `translateY(${translateY}px)`;
                updateIndicators();
            }
            
            // 滾動到下一條公告
            function nextNotice() {
                currentIndex = (currentIndex + 1) % noticeCount;
                goToNotice(currentIndex);
            }
            
            // 開始自動滾動
            function startAutoScroll() {
                autoScrollInterval = setInterval(() => {
                    nextNotice();
                }, 4000);
            }
            
            // 鼠標懸停時暫停自動滾動
            noticeList.addEventListener('mouseenter', () => {
                clearInterval(autoScrollInterval);
            });
            
            // 鼠標離開時恢復自動滾動
            noticeList.addEventListener('mouseleave', () => {
                startAutoScroll();
            });
            
            // 窗口大小變化時重新計算高度
            window.addEventListener('resize', () => {
                const newHeight = notices[0] ? notices[0].offsetHeight : 220;
                if (newHeight !== noticeHeight) {
                    noticeHeight = newHeight;
                    goToNotice(currentIndex); // 重新定位當前公告
                }
            });
            
            // 初始化
            if (noticeCount > 0) {
                initIndicators();
                startAutoScroll();
            }
        });
    </script>
剛剛用了默認模板還是出現(xiàn)同樣的問題 我添加的靜態(tài)公告代碼是這樣子的
回復

使用道具 舉報

45

主題

6737

回帖

18

粉絲

應用開發(fā)者

貢獻
666 點
金幣
1460 個
產品版本
X5.0+
QQ
7#
發(fā)表于 2025-11-10 16:16:19 |浙江| 只看Ta
windy4038 發(fā)表于 2025-11-10 16:10
* {
            margin: 0;
            padding: 0;

你自己加的這個代碼里就有限制頭部最大寬度的樣式定義,所以你自己這段代碼造成的
回復

使用道具 舉報

2

主題

6

回帖

0

粉絲

初學乍練

貢獻
0 點
金幣
5 個
8#
 樓主| 發(fā)表于 2025-11-10 16:35:01 |廣東| 只看Ta
湖中沉 發(fā)表于 2025-11-10 16:16
你自己加的這個代碼里就有限制頭部最大寬度的樣式定義,所以你自己這段代碼造成的 ...

- -嘗試了 把這整個代碼都刪除了 然后更新緩存 還是不行 同樣的老問題
回復

使用道具 舉報

45

主題

6737

回帖

18

粉絲

應用開發(fā)者

貢獻
666 點
金幣
1460 個
產品版本
X5.0+
QQ
9#
發(fā)表于 2025-11-10 16:37:43 |浙江| 只看Ta
windy4038 發(fā)表于 2025-11-10 16:35
- -嘗試了 把這整個代碼都刪除了 然后更新緩存 還是不行 同樣的老問題

你大概率還有其他代碼限制唄,DZ標準產品是肯定沒問題的,與其在這猜,你不如直接放出地址更實際
回復

使用道具 舉報

2

主題

6

回帖

0

粉絲

初學乍練

貢獻
0 點
金幣
5 個
10#
 樓主| 發(fā)表于 2025-11-10 16:51:19 |廣東| 只看Ta
湖中沉 發(fā)表于 2025-11-10 16:37
你大概率還有其他代碼限制唄,DZ標準產品是肯定沒問題的,與其在這猜,你不如直接放出地址更實際 ...

- -因為是局域網沒放出來 所以發(fā)不了
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

  • 關注公眾號
  • 有償服務微信
  • 有償服務QQ

手機版|小黑屋|Discuz! 官方交流社區(qū) ( 皖ICP備16010102號 |皖公網安備34010302002376號 )|網站地圖|star

GMT+8, 2026-4-17 23:21 , Processed in 0.067131 second(s), 18 queries , Redis On.

Powered by Discuz! X5.0 Licensed

© 2001-2026 Discuz! Team.

關燈 在本版發(fā)帖
有償服務QQ
有償服務微信
返回頂部
快速回復 返回頂部 返回列表