From 70ebfb918eed4a0d188d1f3aed387de2ab9586bc Mon Sep 17 00:00:00 2001
From: YANGDL <114714267@qq.com>
Date: 星期三, 16 十二月 2020 10:37:01 +0800
Subject: [PATCH] 修改地图样式
---
src/views/MapTemplate.vue | 12 ++++++++----
src/App.vue | 2 +-
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 66708b1..3c017ad 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -22,7 +22,7 @@
</script>
<style>
-#app {
+html,body,#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
diff --git a/src/views/MapTemplate.vue b/src/views/MapTemplate.vue
index 3706946..1c1a4c2 100644
--- a/src/views/MapTemplate.vue
+++ b/src/views/MapTemplate.vue
@@ -42,13 +42,17 @@
}
</script>
-<style lang="less" scoped>
+<style lang="less">
+
.full-screen{
- width: calc(100vw);
- height: calc(100vh);
- overflow: hidden;
+ width: 100%;
+ height: 100%;
margin: 0;
padding: 0;
position: absolute;
+ #map{
+ height: 100%;
+ width: 100%;
+ }
}
</style>>
--
Gitblit v1.8.0