Iframe 100% height inside body with padding

前端 未结 4 588
梦如初夏
梦如初夏 2020-12-05 14:52

I have an iframe in my HTML document and I\'m having a bit of trouble.

I also have a URL bar (fixed position element) at the top of the page that should stay with th

4条回答
  •  天涯浪人
    2020-12-05 15:27

    If by covering up part of the page, you mean the page displayed in the iframe, one thought might be to add a top margin to your iframe, using the margin-top: property in CSS. This would eliminate the scroll bar given that you properly constrained the height of the iframe.

提交回复
热议问题