From 4dc6e258bd6775bc3885acbe14859a4a7de156a2 Mon Sep 17 00:00:00 2001 From: fish Date: Thu, 23 Jul 2026 23:16:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=BD=E5=B1=89=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E4=B8=8D=E6=98=BE=E7=A4=BA=E3=80=81=E6=8A=98=E5=8F=A0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E3=80=81=E6=9A=97=E5=A4=9C=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=8F=8A=E6=8C=AF=E5=B9=85=E8=A1=8C=E9=AB=98=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 振幅锁仓策略/index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/振幅锁仓策略/index.html b/振幅锁仓策略/index.html index 65f9b54..7e2d773 100644 --- a/振幅锁仓策略/index.html +++ b/振幅锁仓策略/index.html @@ -26,6 +26,8 @@ td { padding: 6px 10px; border: 1px solid var(--td-border); text-align: center; } tr:nth-child(even) td { background: var(--td-even); } td:first-child { font-weight: 500; color: var(--td-first); } + tr.active td { background: #dbeafe !important; } + [data-theme="dark"] tr.active td { background: #1e3a5f !important; } td:nth-child(2) { font-size: 0.78rem; color: var(--sub); } .na { color: var(--na); } @@ -151,9 +153,11 @@ function toggleSection(id) { } // ── 抽屉 ── +var activeRow = null; function closeDrawer() { document.getElementById('overlay').classList.remove('show'); document.getElementById('drawer').classList.remove('show'); + if (activeRow) { activeRow.classList.remove('active'); activeRow = null; } } // ── 振幅点击 → 抽屉 ── @@ -196,6 +200,11 @@ document.querySelectorAll('.amp-cell').forEach(function(cell) { document.getElementById('overlay').classList.add('show'); document.getElementById('drawer').classList.add('show'); + + // 行高亮 + if (activeRow) activeRow.classList.remove('active'); + row.classList.add('active'); + activeRow = row; }); });