扫码关注官方订阅号
下面是主页面的内容:
当页面缩小时,home.html内容不能全部显示出来,应该怎么更改?
闭关修行中......
<script type="text/javascript">
function changeFrameHeight(){ setTimeout(function(){ var iFrameID = document.getElementById('iframepage'); if(iFrameID) { iFrameID.height = ""; iFrameID.height = iFrameID.contentWindow.document.body.scrollHeight + "px"; } },300) } window.onresize=function(){ changeFrameHeight(); }
</script>
那得写home页面里对窗口尺寸的自适应
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
<script type="text/javascript">
</script>
那得写home页面里对窗口尺寸的自适应