有没有办法检测垂直拉伸的弹出页面?
function ResizeContent(content) {
$(window).resize(function () {
if (window.parent.document.getElementById(getCookie("iFrameId"))) {
var windowId = window.parent.document.getElementById(getCookie("iFrameId")).parentNode;
windowHeight = windowId.style.height.replace("px", ""); // replacing the 'px' so that it will not return NaN
var divHeight = windowHeight - 100;
$("#" + content).height(divHeight);
$("#" + content).height(divHeight);
}
});
}
所以当我从底角拉伸它时,我的问题是它的检测。但是当我垂直拉伸它时,该功能不会触发。