{"id":1011,"date":"2015-03-27T16:51:46","date_gmt":"2015-03-27T08:51:46","guid":{"rendered":"http:\/\/www.daliane.com\/?p=1011"},"modified":"2015-03-27T16:51:46","modified_gmt":"2015-03-27T08:51:46","slug":"js_kong_zhi_iframe_zi_shi_ying_gao_shi_li","status":"publish","type":"post","link":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/js_kong_zhi_iframe_zi_shi_ying_gao_shi_li\/","title":{"rendered":"js\u63a7\u5236iframe\u81ea\u9002\u5e94\u9ad8\u5b9e\u4f8b"},"content":{"rendered":"<p><span style=\"color: #ff0000; font-size: x-large;\"><b>iframe1.html<\/b><\/span><br \/>\n<wbr><\/wbr><br \/>\n&lt;!DOCTYPE html PUBLIC &#8220;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&#8221; &#8220;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&#8221;&gt;<br \/>\n&lt;html xmlns=&#8221;http:\/\/www.w3.org\/1999\/xhtml&#8221;&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text\/html; charset=utf-8&#8243; \/&gt;<br \/>\n&lt;title&gt;\u65e0\u6807\u9898\u6587\u6863&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221; language=&#8221;javascript&#8221;&gt;<br \/>\nfunction iFrameHeight() {<br \/>\nvar ifm= document.getElementById(&#8220;iframepage&#8221;);<br \/>\nvar subWeb = document.frames ? document.frames[&#8220;iframepage&#8221;].document : ifm.contentDocument;<br \/>\nif(ifm != null &amp;&amp; subWeb != null) {<br \/>\nifm.height = subWeb.body.scrollHeight;<br \/>\n}<br \/>\n}<br \/>\n&lt;\/script&gt;<br \/>\n&lt;body&gt;<br \/>\naaaaaaaaaaaaaaa<br \/>\n&lt;iframe onLoad=&#8221;iFrameHeight()&#8221; src=&#8221;http:\/\/localhost\/iframe2.html&#8221; id=&#8221;iframepage&#8221;\u00a0 frameBorder=&#8221;1&#8243; scrolling=&#8221;no&#8221; width=&#8221;100%&#8221; &gt;<br \/>\n&lt;\/iframe&gt;<br \/>\nbbbbbbbbbbbbbb<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n<p><a href=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2015\/03\/1-140PG0063R48.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1012\" src=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2015\/03\/1-140PG0063R48-300x237.png\" alt=\"1-140PG0063R48\" width=\"300\" height=\"237\" srcset=\"http:\/\/www.daliane.com\/wp-content\/uploads\/2015\/03\/1-140PG0063R48-300x237.png 300w, http:\/\/www.daliane.com\/wp-content\/uploads\/2015\/03\/1-140PG0063R48.png 553w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<span style=\"color: #ff0000; font-size: x-large;\"><b>iframe2.html<\/b><\/span><br \/>\n&lt;!DOCTYPE html PUBLIC &#8220;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&#8221; &#8220;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&#8221;&gt;<br \/>\n&lt;html xmlns=&#8221;http:\/\/www.w3.org\/1999\/xhtml&#8221;&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text\/html; charset=utf-8&#8243; \/&gt;<br \/>\n&lt;title&gt;\u65e0\u6807\u9898\u6587\u6863&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body style=&#8221;padding:0; margin:0;&#8221;&gt;<br \/>\n1111111111<br \/>\n&lt;div style=&#8221;border:#00FFFF thin solid; width:300px; height:300px; background:#CCCC99&#8243;&gt;&lt;\/div&gt;<br \/>\n2222222222<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>iframe1.html &lt;!DOCTYPE html PUBLIC &#8220;-\/\/W3C\/\/DT&#8230;<\/p>\n","protected":false},"author":2,"featured_media":1012,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[38,60],"tags":[19,233],"_links":{"self":[{"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/posts\/1011"}],"collection":[{"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/comments?post=1011"}],"version-history":[{"count":1,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/posts\/1011\/revisions"}],"predecessor-version":[{"id":1013,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/posts\/1011\/revisions\/1013"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/media\/1012"}],"wp:attachment":[{"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/media?parent=1011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/categories?post=1011"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/tags?post=1011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}