How to 'grow' an iFrame depending on the size of its contents?

后端 未结 3 769
一整个雨季
一整个雨季 2021-01-06 10:04

I\'m loading the iFrames dynamically and some pages are \'taller\' than others. I\'d like the iFrame to grow accordingly. Is it possible? If so, how?

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-06 10:31

    try using width:100%; height:100% and apply them on your iframe element

提交回复
热议问题