调整背景显示方式

This commit is contained in:
zhl 2021-12-29 20:02:58 +08:00
parent 0ed23380c1
commit df56742ee7
6 changed files with 18 additions and 1 deletions

View File

@ -21,7 +21,7 @@ export default class extends Vue {
body { body {
font-family: 'Oxanium', cursive; font-family: 'Oxanium', cursive;
margin: 0px; margin: 0px;
background: #130933; background: #000;
min-width: 320px; min-width: 320px;
} }

View File

@ -25,6 +25,8 @@ export default class extends Vue {
#chip_section { #chip_section {
background-image: url('~@/assets/main/p4/bg_p4.png'); background-image: url('~@/assets/main/p4/bg_p4.png');
position: relative; position: relative;
background-repeat: no-repeat;
background-size: cover;
} }
.title { .title {
position: absolute; position: absolute;

View File

@ -36,6 +36,8 @@ export default class extends Vue {
#gameplay_section { #gameplay_section {
background-image: url('~@/assets/main/p2/bg_p2.png'); background-image: url('~@/assets/main/p2/bg_p2.png');
position: relative; position: relative;
background-repeat: no-repeat;
background-size: cover;
} }
.title { .title {
display: flex; display: flex;

View File

@ -29,6 +29,8 @@ export default class extends Vue {
#nft_section { #nft_section {
background-image: url('~@/assets/main//p3/bg_p3.png'); background-image: url('~@/assets/main//p3/bg_p3.png');
position: relative; position: relative;
background-repeat: no-repeat;
background-size: cover;
} }
.title { .title {
position: absolute; position: absolute;

View File

@ -18,6 +18,8 @@ export default class extends Vue {
<style lang="scss" scoped> <style lang="scss" scoped>
#video_section { #video_section {
background-image: url('~@/assets/main//p2/bg_p2.png'); background-image: url('~@/assets/main//p2/bg_p2.png');
background-repeat: no-repeat;
background-size: cover;
} }
</style> </style>

View File

@ -51,5 +51,14 @@ section {
-moz-background-size:100% 100%; -moz-background-size:100% 100%;
background-size:100% 100%; background-size:100% 100%;
} }
#fullpage{
max-width: 1920px;
margin: 0 auto;
}
section{
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
</style> </style>