iframetest

This commit is contained in:
黄心宇 2024-08-29 13:41:02 +08:00
parent f039f23525
commit 1db5db8a85
2 changed files with 5 additions and 4 deletions

View File

@ -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
// }

View File

@ -250,5 +250,6 @@ i.color-orange05:hover {
}
.test-iframe {
margin-top: -30px;
margin-top: -48px;
vertical-align:bottom;
}