<iframe >
</iframe>

<script type="text/javascript">
function autoHeight(){
if (window.innerHeight){//FF
nowHeight = window.innerHeight;
}else{
nowHeight = document.documentElement.clientHeight;
}
var jianHeight = 0; //随padding值改变
if(nowHeight > jianHeight){
document.getElementById('ididid').style.height = nowHeight - jianHeight + 'px';
}else{
document.getElementById('ididid').style.height = jianHeight + 'px';
}
}
autoHeight();
window.onresize = autoHeight;
</script>

相关文章:

  • 2021-06-17
  • 2021-10-10
  • 2021-06-30
猜你喜欢
  • 2021-12-11
  • 2022-12-23
  • 2021-12-12
  • 2021-12-12
  • 2021-12-12
  • 2021-11-16
相关资源
相似解决方案