修改高度变量定义
This commit is contained in:
parent
1956a76278
commit
a802fa14e3
|
|
@ -395,7 +395,7 @@ function fetchMail() {
|
||||||
$('#exampleModalLabel').text(text);
|
$('#exampleModalLabel').text(text);
|
||||||
// 显示模态框
|
// 显示模态框
|
||||||
$('#myModal').modal('show');
|
$('#myModal').modal('show');
|
||||||
var iframeHeight = $('#modalIframe').contents().find("html").height();
|
let iframeHeight = $('#modalIframe').contents().find("html").height();
|
||||||
console.log("Iframe的实际高度是: " + iframeHeight + "px");
|
console.log("Iframe的实际高度是: " + iframeHeight + "px");
|
||||||
if (iframeHeight >= 600){
|
if (iframeHeight >= 600){
|
||||||
$('#modalIframe').css('height',600);
|
$('#modalIframe').css('height',600);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user