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 @@