Make iframes content overflow outside iframe extents

后端 未结 3 1305
灰色年华
灰色年华 2021-02-19 06:50

I have a webpage that contains an iframe. Inside that iframe is an embedded Youtube video. When I play this video I make it scale up (grow) in size. As

3条回答
  •  囚心锁ツ
    2021-02-19 07:26

    The other way not suggested here would be to use two iframes. The second would float over the first one and would contain video. You can communicate between windows with window.postMessage. But if you have control over iframe and top page then you could put the video in div in top page. Still both pages can communicate with window.postMessage.

提交回复
热议问题