Set iframe to height of content for remote content

后端 未结 6 1896
时光取名叫无心
时光取名叫无心 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:34

    what about using 100% in CSS? scrollbars can be disabled in iframe, but then user won't be able to scroll.

    that's the JS/XSS prevention, so get over it and try to pull the content on the server side and serve it via local connection.

提交回复
热议问题