SyuanYu 9 月之前
父節點
當前提交
880e5812f3
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/Step_5.vue

+ 3 - 3
src/views/Step_5.vue

@@ -249,7 +249,6 @@ const openUploadInput = () => {
           >
             <div
               class="mask"
-              id="mask"
               :style="`background-image: url('${result.dataURL}')`"
             ></div>
             <!-- <img :src="result.dataURL" /> -->
@@ -316,7 +315,7 @@ const openUploadInput = () => {
     content: "";
     width: 100%;
     height: 100%;
-    background-color: rgba(#000, 0.7);
+    background-color: rgba(0, 0, 0, 0.7);
     z-index: 0;
   }
 
@@ -331,7 +330,8 @@ const openUploadInput = () => {
     background-repeat: no-repeat;
     background-position: center center;
     background-size: cover;
-    clip-path: xywh(40% 25% 70% 75% round 0);
+    clip-path: inset(25% 0% 0% 45% round 0);
+    // clip-path: xywh(40% 25% 70% 75% round 0);
   }
 
   // img {