From 030ab88a4df1d62f77c9f37709d708f7782e952e Mon Sep 17 00:00:00 2001 From: sight <26325820+Sight-wcg@users.noreply.github.com> Date: Fri, 5 Sep 2025 21:21:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(element-nav):=20=E7=BA=B5=E5=90=91=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E5=87=BA=E7=8E=B0=E6=BB=9A=E5=8A=A8=E6=9D=A1=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=BB=91=E5=9D=97=E4=BD=8D=E7=BD=AE=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/element.js b/src/modules/element.js index d7f24d6f..5e56e1e1 100644 --- a/src/modules/element.js +++ b/src/modules/element.js @@ -485,7 +485,7 @@ layui.define('jquery', function(exports) { if (!child[0]) { var thisA = othis.children('.'+ NAV_TITLE); bar.css({ - top: othis.offset().top - nav.offset().top, + top: othis.offset().top - nav.offset().top + nav.scrollTop(), height: (thisA[0] ? thisA : othis).outerHeight(), opacity: 1 });