html-iframe Variable Height Question.

Asked 2 years ago, Updated 2 years ago, 129 views

Hello!

I want to show iframe.html as iframe in parent.html. In parent.html, the height of iframe.html is calculated and the height is not cut (I solved this part) The problem is that iframe.html has a variable height valueㅠ<

For example, the first iframe.html was 50 in height, and the parent.html shows well by creating an iframe of 50 in height. However, the height of iframe.html is increased to 100 due to some event, and the iframe value in parent.html must also be increased to 100.

How can I take the height value of iframe.html with these variable values and put different heights in the iframe of parent.html?

html iframe

2022-09-21 14:17

1 Answers

There is a library that provides the exact solution to the problem you are trying to solve. Please keep that in mind.

https://github.com/davidjbradshaw/iframe-resizer

Demo: http://davidjbradshaw.com/iframe-resizer/example/


2022-09-21 14:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.