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

后端 未结 12 1391
耶瑟儿~
耶瑟儿~ 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 01:11

    Well, the question is old, but I had today the same problem, and none of the answers solved my problem. With internal pages (same domain) only, two vertical scrollbars appeared too. One to navigate the loaded page (correct), and another one to adjust a little bit the height of the iframe zone (!)... With external source pages it seems to work well.

    The way I fixed this problem was to add a class to the body of the internal page to load, like this

    
    

    and put the following in my CSS file

    body.internalPage{height: 99.5%;}
    

    I hope it helps someone in future.

提交回复
热议问题