提交 bf0b028f authored 作者: JSHorse's avatar JSHorse

问题调整

上级 4f222e2e
...@@ -10,4 +10,6 @@ $font-size-sm:14px; ...@@ -10,4 +10,6 @@ $font-size-sm:14px;
$font-size-base:16px; $font-size-base:16px;
$font-size-lg:22px; $font-size-lg:22px;
$nav-height: 120px;
$defaultFontFamily: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif; $defaultFontFamily: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
...@@ -175,6 +175,7 @@ export default { ...@@ -175,6 +175,7 @@ export default {
flex-direction: column; flex-direction: column;
color: #fefefe; color: #fefefe;
font-size: 14px; font-size: 14px;
position: relative;
.logo { .logo {
width: 60px; width: 60px;
height: 60px; height: 60px;
......
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
// background-position: 0 -100px; // background-position: 0 -100px;
> img { > img {
position: absolute; position: absolute;
top: -100px; top: -$nav-height;
left: 0; left: 0;
width: 100%; width: 100%;
height: calc(100vh); height: calc(100vh);
......
<template> <template>
<div class="content"> <div class="content">
<div class="bg"> <div class="bg">
<img src="@/assets/imgs/show/bg.png" alt="" class="main" /> <div class="main">
<img src="@/assets/imgs/show/bg.png" alt="" class="main" />
</div>
<!-- <div class="mask"></div> --> <!-- <div class="mask"></div> -->
<div class="color"> <div class="color">
<img src="@/assets/imgs/show/circle-bg.png" alt="" class="cb" /> <img src="@/assets/imgs/show/circle-bg.png" alt="" class="cb" />
...@@ -605,11 +607,23 @@ $node-w: 700px; ...@@ -605,11 +607,23 @@ $node-w: 700px;
z-index: 0; z-index: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden;
> img { > img {
width: 100%; width: 100%;
} }
> .main {
width: 100%;
min-height: 100vh;
height: calc(100% + $nav-height);
position: absolute;
top: -$nav-height;
left: 0;
overflow: hidden;
> img {
width: 100%;
height: 100%;
}
}
> .color { > .color {
position: absolute; position: absolute;
left: 0; left: 0;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
width: 100%; width: 100%;
height: 100vh; height: 100vh;
position: absolute; position: absolute;
top: -100px; top: -$nav-height;
left: 0; left: 0;
> img { > img {
width: 100%; width: 100%;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论