From 8b8ff4f45d3539cb891541a0a339d1f16d5e6010 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Fri, 24 Jun 2022 13:27:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/scss/pages/yantai-index.scss | 41 +++++++---------- src/views/components/fixed1920.vue | 59 +++++++++++++++++++++++++ src/views/pages/yantai-index.vue | 40 ++++++++++------- 3 files changed, 99 insertions(+), 41 deletions(-) create mode 100644 src/views/components/fixed1920.vue diff --git a/src/assets/scss/pages/yantai-index.scss b/src/assets/scss/pages/yantai-index.scss index dba5e9bac..600eca09a 100644 --- a/src/assets/scss/pages/yantai-index.scss +++ b/src/assets/scss/pages/yantai-index.scss @@ -1,28 +1,19 @@ @import "~@/assets/scss/c/config.scss"; @import "~@/assets/scss/c/function.scss"; -.g-bd { - &::before, - &::after { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: -1; - content: ""; - } - &::before { - background-image: url(~@/assets/img/yantai/index/bg.png); - background-size: cover; - } - &::after { - // background-color: rgba(38, 50, 56, 0.1); - } +.g-cnt { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-image: url(~@/assets/img/yantai/index/bg.png); + background-size: cover; + background-position: center; } .m-top { - position: fixed; + position: absolute; top: 0; width: 1920px; left: -1000px; @@ -46,7 +37,7 @@ } .m-list { - position: fixed; + position: absolute; top: 50%; left: 0; right: 0; @@ -59,6 +50,7 @@ align-items: center; width: 100%; margin: 0 auto; + .menu { position: relative; @@ -126,15 +118,16 @@ } .arrow { + width: 60px; margin: 0 20px; } .item { + position: relative; + margin: 0 50px; + width: 420px; + .item-wrap { - position: relative; - width: 420px; - margin: 0 20px; - max-width: 612px; text-align: center; cursor: pointer; transition: all 0.2s ease; diff --git a/src/views/components/fixed1920.vue b/src/views/components/fixed1920.vue new file mode 100644 index 000000000..59987491c --- /dev/null +++ b/src/views/components/fixed1920.vue @@ -0,0 +1,59 @@ + + + + diff --git a/src/views/pages/yantai-index.vue b/src/views/pages/yantai-index.vue index 2f49647ef..4131f351d 100644 --- a/src/views/pages/yantai-index.vue +++ b/src/views/pages/yantai-index.vue @@ -1,6 +1,6 @@