¡@

Home 

2014/10/16 ¤W¤È 12:03:32

jquery Programming Glossary: frameheight2

How to 'grow' an iFrame depending on the size of its contents?

http://stackoverflow.com/questions/2872967/how-to-grow-an-iframe-depending-on-the-size-of-its-contents

function AssignFrameHeight var theFrame #ifrm parent.document.body var frameHeight1 getIframeHeight 'ifrm' var frameHeight2 document.body .height if document.body 0 if document.body 0 .bottomMargin frameHeight2 Number document.body 0 .bottomMargin.. getIframeHeight 'ifrm' var frameHeight2 document.body .height if document.body 0 if document.body 0 .bottomMargin frameHeight2 Number document.body 0 .bottomMargin if document.body 0 .topMargin frameHeight2 Number document.body 0 .topMargin if frameHeight1.. 0 if document.body 0 .bottomMargin frameHeight2 Number document.body 0 .bottomMargin if document.body 0 .topMargin frameHeight2 Number document.body 0 .topMargin if frameHeight1 frameHeight2 theFrame.height frameHeight1 20 else if .browser.msie theFrame.height..