- 25
- 0
- 约2.86万字
- 约 31页
- 2017-07-20 发布于河南
- 举报
如何让iframe自适应高度(How do I make iframe adaptive height)
如何让iframe自适应高度(How do I make iframe adaptive height)
How do I make iframe adaptive height
iframe id = frame1 SRC = # # # # # # # # # # # # # # # # # # # # width = 640 scrolling = no frameborder = 0 onload = this.height = 100 / iframe
script type = text/javascript
The function reinitIframe () {
Var iframe = document. GetElementById ( frame1 );
Try {
Var bHeight = iframe. ContentWindow. Document. Body. ScrollHeight;
Var dHeight = iframe. ContentWindow. Document. The documentElement. ScrollHeight;
Var height = math.max (bHeight, dHeight);
The iframe. Height = height;
{}} the catch (ex)
}
W
您可能关注的文档
- 促销方案(Sales promotion plan).doc
- 俄罗斯不惧级护卫舰(Russia is not afraid of class frigates).doc
- 保证图像清晰度的几个办法(Several ways to ensure image clarity).doc
- 保护地保护零重复地工作地(Protect ground zero repeatedly).doc
- 俄罗斯和西方望远镜的比较(Comparison of Russian and western telescopes).doc
- 保险企业信用评级的有效性分析—一个交易成本的视角(Analysis on the effectiveness of credit rating of insurance companies - a perspective of transaction cost).doc
- 保险公司双高杠杆之祸(Insurance companies are both highly leveraged).doc
- 信号检测(Signal detection).doc
- 信必可都保的使用问(A letter must be guaranteed).doc
- 信息化建设(Information-based construction).doc
最近下载
- 江西农业大学森林生态学历年考博真题14-21年.doc VIP
- 肝衰竭诊治指南(2025年版).docx VIP
- 技能大赛--智慧新能源实训系统--实训教程V2.0.pdf VIP
- 重度哮喘诊断与处理中国专家共识(2024)解读.pptx VIP
- GB 50300-2013建筑工程施工质量验收统一标准.pdf VIP
- 中国计量大学《电子线路CAD》2021-2022学年第一学期期末试卷.doc VIP
- 中国计量大学《电子线路CAD》2023-2024学年第一学期期末试卷.doc VIP
- 飞机系统与附件 刹车系统 B737-800起落架刹车系统.ppt VIP
- 塑料压延成型设备.PPT VIP
- 飞机系统与附件 主起落架结构和舱门 b737-800起落架第一讲.ppt VIP
原创力文档

文档评论(0)