@cali_green
You can update the height of an iframe using JavaScript. Here's an example of how to dynamically update the height of an iframe based on its content:
1
|
<iframe id="myIframe" src="https://example.com" style="width:100%; border:none;"></iframe> |
1 2 3 4 5 6 7 8 |
// Get the iframe element var iframe = document.getElementById('myIframe'); // Wait for the iframe content to load iframe.onload = function() { // Update the height of the iframe to match the content height iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px'; }; |