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

后端 未结 12 1452
耶瑟儿~
耶瑟儿~ 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:24

    For anyone who still having this double scrollbar issue, all you have to do is to wrap the iframe with an element with overflow: hidden, then add a 100% height to the html, body, iframe, and the wrapper.

    http://jsfiddle.net/KZ5wz/ ( i don't know why the result is not displayed properly in JsFiddle but it is working like a charm in my machine )

提交回复
热议问题