div on top of iframe

前端 未结 3 1698
闹比i
闹比i 2020-12-31 04:30

Im looking for a solution to place a div (100% screen width and lets say 20% height) on top of iframe which is 100% screen width and 100% screen height It should look like

3条回答
  •  独厮守ぢ
    2020-12-31 05:02

    It should be possible, what's the problem?

    Make sure you have the position style set to absolute (or fixed, depending on your need) and set the proper z-index if necessary. Also adjust width and height as needed.

提交回复
热议问题