From 989fd0a1ed1720a7507282eb557d29d3267a582a Mon Sep 17 00:00:00 2001 From: nhkefus Date: Thu, 20 Mar 2025 14:03:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BD=91=E9=A1=B5=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E9=85=8D=E7=BD=AE=E5=8A=9F=E8=83=BDUI=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TC1/http_server/web/index.html | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/TC1/http_server/web/index.html b/TC1/http_server/web/index.html index 49589e3..f0cfc72 100644 --- a/TC1/http_server/web/index.html +++ b/TC1/http_server/web/index.html @@ -296,10 +296,6 @@ 按键类型 执行操作 - - 连续短按1次 - 总开关 - @@ -903,6 +899,12 @@ for (var i = 0; i < actions.length; i++) { `; } document.getElementById("short_click_events_tb").innerHTML = tb_html; +// 手动将所有 .mdl-menu 挪到 body 下 +document.querySelectorAll('.mdl-menu').forEach(menu => { + if (menu.parentElement !== document.body) { + document.body.appendChild(menu); + } +}); @@ -1252,7 +1254,11 @@ for (var i = 0; i < actions.length; i++) { `; } document.getElementById("short_click_events_tb").innerHTML = tb_html; - +document.querySelectorAll('.mdl-menu').forEach(menu => { + if (menu.parentElement !== document.body) { + document.body.appendChild(menu); + } +}); window.setTimeout(GetPowerRecord, 3000); }, power_idx.toString());