浏览代码

全屏样式

dev
yuzongping 1周前
父节点
当前提交
fc33414a01
共有 2 个文件被更改,包括 13 次插入9 次删除
  1. +5
    -5
      src/App.vue
  2. +8
    -4
      src/style/_base.scss

+ 5
- 5
src/App.vue 查看文件

@@ -1,9 +1,9 @@
<template>
<v-scale-screen width="1920" height="1080">
<div id="app">
<router-view />
</div>
</v-scale-screen>
<!-- <v-scale-screen width="1920" height="1080"> -->
<div id="app">
<router-view />
</div>
<!-- </v-scale-screen> -->
</template>

<script>


+ 8
- 4
src/style/_base.scss 查看文件

@@ -20,8 +20,10 @@ body {

.page {
position: relative;
width: 1920px;
height: 1080px;
width: 100vw;
min-width: 1920px;
height: 100vh;
min-height: 1080px;

.left_side {
position: absolute;
@@ -100,8 +102,10 @@ body {


.screen {
width: 1920px;
height: 1080px;
width: 100vw;
min-width: 1920px;
height: 100vh;
min-height: 1080px;
}

.relative {


正在加载...
取消
保存