diff --git a/ln_jq_app/assets/html/map.html b/ln_jq_app/assets/html/map.html index 8f8b21e..8bc6706 100644 --- a/ln_jq_app/assets/html/map.html +++ b/ln_jq_app/assets/html/map.html @@ -122,17 +122,19 @@ } /* --- 调整比例尺位置 --- */ -.amap-scalecontrol { - /* 初始状态:避开底部的定位按钮或留出安全间距 */ - bottom: 80px !important; - left: 10px !important; - transition: bottom 0.3s ease; /* 增加平滑动画 */ -} + .amap-scalecontrol { + /* 初始状态:避开底部的定位按钮或留出安全间距 */ + bottom: 80px !important; + left: 10px !important; + transition: bottom 0.3s ease; + /* 增加平滑动画 */ + } -/* --- 当路径规划面板显示时,比例尺自动上移 --- */ -body.panel-active .amap-scalecontrol { - bottom: 38% !important; /* 移动到面板上方 (面板高度35% + 3%间距) */ -} + /* --- 当路径规划面板显示时,比例尺自动上移 --- */ + body.panel-active .amap-scalecontrol { + bottom: 38% !important; + /* 移动到面板上方 (面板高度35% + 3%间距) */ + } /* --- 关键:当 body 有 panel-active 类时,按钮上移 --- */ body.panel-active #location-btn { @@ -180,7 +182,7 @@ body.panel-active .amap-scalecontrol {