瀏覽代碼

update admin page

ayHaru 4 年之前
父節點
當前提交
59b4094d31
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      admin/templates/default/provider.successful.php

+ 4 - 4
admin/templates/default/provider.successful.php

@@ -93,11 +93,11 @@
         $("#Iframe").load(function(){
             // $(this).css("min-height", '900px')
             // $(this).css("min-width", '1650px')
-            var iframeHeight = $(this).contents().find("html").height();
-            var iframeWidth = $(this).contents().find("html").width();
+            var iframeHeight = $(this).contents().find("html").scrollHeight();
+            var iframeWidth = $(this).contents().find("html").scrollWidth();
             $(this).attr("height",iframeHeight) 
-            // $(this).attr("width",iframeWidth) 
-            console.log('iframeHeight', iframeHeight, iframeWidth, $(this).contents().find("html"));
+            $(this).attr("width",iframeWidth) 
+            // console.log('iframeHeight', iframeHeight, iframeWidth);
         });
         $('#timeSelect').change(function () {
             let val = $(this).val()