Przeglądaj źródła

fix: 上传题卡预览问题

zhangjie 6 miesięcy temu
rodzic
commit
d82965e0a7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/modules/card/views/CardPreview.vue

+ 1 - 1
src/modules/card/views/CardPreview.vue

@@ -165,7 +165,7 @@ export default {
       const iframeDom = document.createElement("iframe");
       const iframeDom = document.createElement("iframe");
       document.getElementById("preview-frame").appendChild(iframeDom);
       document.getElementById("preview-frame").appendChild(iframeDom);
       const wwidth = window.innerWidth;
       const wwidth = window.innerWidth;
-      const wheight = window.innerHeight - 10;
+      const wheight = window.innerHeight - 60;
       iframeDom.style.cssText = `width: ${wwidth}px;height: ${wheight}px;border:none;outline:none;`;
       iframeDom.style.cssText = `width: ${wwidth}px;height: ${wheight}px;border:none;outline:none;`;
       const iframeDoc = iframeDom.contentDocument;
       const iframeDoc = iframeDom.contentDocument;
       iframeDoc.open();
       iframeDoc.open();