diff --git a/src/App.vue b/src/App.vue index 63c649c..a600aa2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -62,6 +62,8 @@ export default { } // 沉浸样式 .immerse-image { + position: absolute; + top: 0; width: 100%; line-height: 0; .image { @@ -70,8 +72,7 @@ export default { } } .immerse-main { - position: absolute; - top: 0; + position: relative; width: 100%; box-sizing: border-box; .head-title { diff --git a/src/components/layout/layout.vue b/src/components/layout/layout.vue index 497b959..eecee85 100644 --- a/src/components/layout/layout.vue +++ b/src/components/layout/layout.vue @@ -1,5 +1,5 @@