diff --git a/css/components.css b/css/components.css index 17bd3dc..3d7ef34 100644 --- a/css/components.css +++ b/css/components.css @@ -300,3 +300,30 @@ padding: 4px 10px; } } + +/* 地图界面响应式布局 */ +#map-interface main { + padding-top: 112px; /* 默认移动端:64px header + 48px 搜索框 */ +} + +#map-interface #map-chart { + height: calc(100vh - 112px); +} + +#breadcrumb-container { + top: 120px; /* 移动端:在搜索框下方 */ +} + +@media (min-width: 768px) { + #map-interface main { + padding-top: 64px; /* PC端:只有header */ + } + + #map-interface #map-chart { + height: calc(100vh - 64px); + } + + #breadcrumb-container { + top: 80px; /* PC端:在header下方 */ + } +} diff --git a/index.html b/index.html index 6e8fc5f..0ead2a9 100644 --- a/index.html +++ b/index.html @@ -744,31 +744,48 @@
-
-
+
+
+
+