iFrame 100% height causes vertical scrollbar

前端 未结 5 1189
Happy的楠姐
Happy的楠姐 2020-12-14 18:12

I see alot of questions about 100% height iFrames but noone seems to have the exact same problem as I do.

What I want to do is to have an iFrame that covers the enti

5条回答
  •  时光取名叫无心
    2020-12-14 18:54

    Update:

    working example in chrome 16.0.*, firefox 10.* (apparently ie9 acts up and displays a scrollbar either way -- either a disabled one if the height is set to 99% or a active one that can't scroll if height is 100%):

    place the following in a html file and open it (don't know what jsfiddle is doing different, but it doesn't work the same way)