超级简单的方法,也不用写什么判断浏览器高度、宽度啥的。
下面的两种方法自选其一就行了。一个是放在和iframe同页面的,一个是放在test.html页面的。
注意别放错地方了哦。



iframe代码,注意要写ID


<iframe src="test.html" ).height()+30;
$(this).height(mainheight);
});

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
猜你喜欢
  • 2022-01-26
  • 2022-02-07
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案