From 1db5db8a85c70d07b10e54972c8326199f3c02ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Thu, 29 Aug 2024 13:41:02 +0800 Subject: [PATCH] iframetest --- src/forge/iframe.jsx | 6 +++--- src/index.css | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/forge/iframe.jsx b/src/forge/iframe.jsx index f95108cf1..f7b6ef56e 100644 --- a/src/forge/iframe.jsx +++ b/src/forge/iframe.jsx @@ -15,9 +15,9 @@ const Iframe = (props) => { // } function iframeLoad() { - // let myIframe = document.getElementById("iframe"); - // myIframe.height = `${document.documentElement.clientHeight - 300}px` - // if (myIframe.contentWindow.location && myIframe.contentWindow.location.href) { + let myIframe = document.getElementById("iframe"); + myIframe.height = `${document.documentElement.clientHeight - 473 + 86}px` + // if (myIframe.contentWindow.location && myIfram e.contentWindow.location.href) { // window.location.href = 'http://118.145.132.196:3000/product/llm/llm-chat' // //myIframe.contentWindow.location.href // } diff --git a/src/index.css b/src/index.css index ca2ae2b50..ad25c1685 100644 --- a/src/index.css +++ b/src/index.css @@ -250,5 +250,6 @@ i.color-orange05:hover { } .test-iframe { - margin-top: -30px; + margin-top: -48px; + vertical-align:bottom; } \ No newline at end of file