如何让iframe自适应高度(How do I make iframe adaptive height).docVIP

  • 25
  • 0
  • 约2.86万字
  • 约 31页
  • 2017-07-20 发布于河南
  • 举报

如何让iframe自适应高度(How do I make iframe adaptive height).doc

如何让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

文档评论(0)

1亿VIP精品文档

相关文档