Set iframe to height of content for remote content

后端 未结 6 1934
时光取名叫无心
时光取名叫无心 2021-01-12 11:59

The question of how to make your iframe fit 100% of your content (using JavaScript) has been answered on the forum already... for iframes displaying content from the sam

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-12 12:47

    It sounds like you are trying to work around a security feature that was put in place for a good reason...

    Does the resizing have to be through script? You could redirect to a page where the size of the iframe is taken from a querystring, or a database, or config file, etc.

提交回复
热议问题