overlay div over iframe

后端 未结 6 1209
一向
一向 2020-12-15 11:22

I\'m making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript. How can I have

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 12:14

    This worked for me:

    • add the overlay div with a high z-index and absolute position
    • make the iframe also positioned absolute
    • add the iframe inside a div

    The div with the overlay:

    ...overlay html...

    The iframe:

    
    

提交回复
热议问题