去掉标头折叠功能,只保留静态表头

This commit is contained in:
fish
2026-07-24 17:44:41 +08:00
parent d95aa8d215
commit 730326fb5b
4 changed files with 8 additions and 33 deletions
+2 -8
View File
@@ -37,10 +37,7 @@
.toggle-btn:hover { opacity: 0.8; }
.section { margin-bottom: 8px; }
.section h2 { font-size: 1.1rem; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; margin: 28px 0 10px; padding: 4px 0; }
.section h2 .arrow { display: inline-block; transition: transform .2s; font-size: 0.8rem; }
.section.collapsed h2 .arrow { transform: rotate(-90deg); }
.section.collapsed table { display: none; }
.section h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; margin: 28px 0 10px; padding: 4px 0; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 99; display: none; }
.drawer-overlay.show { display: block; }
@@ -68,7 +65,7 @@
<p class="formula">振幅算法:近 5 日均振幅 = 过去 5 个交易日 (最高 − 最低) 的均值,结果四舍五入取整</p>
<div class="section" id="sec-fg2610">
<h2 onclick="toggleSection('sec-fg2610')"><span class="arrow"></span> FG2610 玻璃</h2>
<h2>FG2610 玻璃</h2>
<table>
<tr><th>日期</th><th>星期</th><th>开盘</th><th>收盘</th><th>最高</th><th>最低</th><th>最高最低差价</th><th>振幅</th></tr>
<tr><td>2026/7/1</td><td>周三</td><td>1015</td><td>1007</td><td>1015</td><td>1000</td><td>15</td><td class="na">-</td></tr>
@@ -125,9 +122,6 @@ function toggleTheme() {
} catch(e) {}
})();
function toggleSection(id) {
document.getElementById(id).classList.toggle('collapsed');
}
var activeRow = null;
function closeDrawer() {