0
I am currently using this code to set the height of an iframe:
Iframe:
<iframe class="rastreamento" style="width: 100%; border: none;" src=">meutarget<" frameborder="0" scrolling="no" onload="resizeIframe(this)"></iframe>
Script:
<script>
function resizeIframe(obj) {
obj.style.height = obj.contentWindow.document.documentElement.scrollHeight + 'px';
}
Only mobile does not work, it is smaller than it should be and as I disabled the scroll in style, it is impossible to view all content.
What’s the best way to solve this?
Look, I would consider using a Bootstrap to do the most responsiveness , and in the gafs q there may be , use either the JS itself as you already do or the CSS msm!
– Guilherme Lara