修改高度变量定义

This commit is contained in:
神楽坂 白 2023-11-14 01:49:12 +00:00
parent 1956a76278
commit a802fa14e3

View File

@ -395,7 +395,7 @@ function fetchMail() {
$('#exampleModalLabel').text(text);
// 显示模态框
$('#myModal').modal('show');
var iframeHeight = $('#modalIframe').contents().find("html").height();
let iframeHeight = $('#modalIframe').contents().find("html").height();
console.log("Iframe的实际高度是: " + iframeHeight + "px");
if (iframeHeight >= 600){
$('#modalIframe').css('height',600);