How to get rid of the double scroll bar when using an iframe?

后端 未结 12 1453
耶瑟儿~
耶瑟儿~ 2021-02-07 00:19

I\'ve seen this problem on the web, and all the suggested solutions aren\'t working for me, so I thought I\'d come here.

I have a page that has an iframe. The top of the

12条回答
  •  深忆病人
    2021-02-07 00:57

    I know this was a bit old, but here's what I did for my page:

    I had a page with just an iFrame, and I wanted it to take up the entire page, so I used

    
    

    After I added the appropriate padding/margin/border removal, I had the double scrollbar problem you described. Using Chrome's inspect feature, I discovered that the body of the page was about 5px longer than the iframe, so I just modified the iframe code:

    
    

    That margin-bottom:-5px; fixed the issue for me.

提交回复
热议问题