html - Responsive IFrame to display content from External Document -


i have iframe display content of .htm file, present in location. document loads while on desktop browser.

but while on mobile version, content of document not displayed completely.

i looking responsive iframe both mobile , desktop views.

html

<iframe     id="ifrm"     src="url.htm"     width="100%"     frameborder="0"     scrolling="no"     height="1450px"     style="padding-top: 0px; float: left;" target="_blank" /> 

i referred these links, unfortunately didn't help:

full-screen iframe height of 100%

scale iframe css width 100% image

try link

html:

<div class="iframe">     <iframe src="http://a.rgbimg.com/cache1wztwk/users/m/mi/micromoth/600/oiejat8.jpg" frameborder="0"></iframe> </div> 

css:

.iframe {     position:relative; } iframe, object, embed {     max-width: 100%;     min-width: 100%; } 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -