zhangwf 5 vuotta sitten
vanhempi
commit
eda7cd2303
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      src/components/EditPanel.vue

+ 4 - 4
src/components/EditPanel.vue

@@ -60,7 +60,7 @@
             </span>
 
             <label style="display: block;
-            cursor: pointer; width:108px;
+            cursor: pointer; width:108px; position: relative;
               height:28px;">
               <div style="width:108px;
               height:28px;
@@ -72,7 +72,7 @@
               justify-content: center;
               line-height:28px;">替换元素
               </div>
-              <input style="display: none;" type="file"  @change="fileChange" multiple="false">
+              <input style="display: none;position: absolute;top: 0px;" type="file"  @change="fileChange" multiple="false">
             </label>
           </div>
         </div>
@@ -313,7 +313,7 @@
                 {{element.imgSrc|currentImageName}}
               </span>
               <label style="display: block;
-              cursor: pointer; width:108px;
+              cursor: pointer; width:108px;position: relative;
                 height:28px;">
                 <div style="width:108px;
                 height:28px;
@@ -325,7 +325,7 @@
                 justify-content: center;
                 line-height:28px;">替换元素
                 </div>
-                <input style="display: none;" type="file"  @change="fileChange" multiple="false">
+                <input style="display: none;position: absolute;top: 0px;" type="file"  @change="fileChange" multiple="false">
               </label>
             </div>
           </div>