$('#iframe').load(function() {
var iframeHeight=$(this).contents().height();
$(this).height(iframeHeight+'px');
});
Html iframe 窗口自适应内容高度
最新推荐文章于 2023-02-06 16:03:38 发布
$('#iframe').load(function() {
var iframeHeight=$(this).contents().height();
$(this).height(iframeHeight+'px');
});