Iframe highly adaptive, js Iframe highly adaptive control, iframe highly adaptive
================================
© Copyright sweet potatoes Yiu December 31, 2019
http://fanshuyao.iteye.com/
Method a: js highly adaptive control Iframe
Before this method has been in use, no problem, but the latest findings in some cases not work (the specific reasons unknown)
Method two: html code control
When a method is not in effect, use the second method.
html head without any statement, are removed, as shown in the following code:
If adaptively above, you do not need the following; if the above is not adaptive to set
1, body style in the overflow: hidden; definitely not be omitted;
2, Iframe in height = '100%' scroll bar can not be set and no (default yes, an can not set)
Method three: The same control is js (unverified)
principle:
Iframe content page using a <div id = "iframeContent"> wrapping, div adaptive internal height will, therefore, can obtain a high degree of div achieved through subpages.
Iframe page
Parent page (embedded Iframe pages) increased js:
Method four: the same control js (unverified)
================================
© Copyright sweet potatoes Yiu December 31, 2019
http://fanshuyao.iteye.com/