iframe.html 253 B

123456
  1. <iframe id="previewIframe" src="{{preview_url}}{{filename}}" style="width: 100%; height: 500px;"></iframe>
  2. <script>
  3. $(window).on("resize", function(previewIframe){
  4. $("#previewIframe").css("width", $("#previewIframe").parent().width());
  5. });
  6. </script>