liuqiao 1 рік тому
батько
коміт
729d66baf9
2 змінених файлів з 2 додано та 2 видалено
  1. 1 1
      public/static/TemplateData/style.css
  2. 1 1
      src/views/home/index.vue

+ 1 - 1
public/static/TemplateData/style.css

@@ -1,5 +1,5 @@
 body { padding: 0; margin: 0 }
-#unity-container { position: fixed; width: 100%; height: 100%; }
+#unity-container { width: 100%; height: 100%; }
 #unity-canvas { width: 100%; height: 100%; background: #231F20 }
 #unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
 #unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }

+ 1 - 1
src/views/home/index.vue

@@ -6,7 +6,7 @@
            <!-- <el-button @click="changeWater(props.water)">水深</el-button>
            <el-button @click="changeCamera(props.neiw)">内部</el-button>
            <el-button @click="changeCamera(props.neiw)">外部</el-button> -->
-      <canvas id="unity-canvas"></canvas>
+      <canvas id="unity-canvas" style="height: 550px;"></canvas>
       <div id="unity-loading-bar">
         <div id="unity-logo"></div>
         <div id="unity-progress-bar-empty">