2
According to the following code, <iframe> does not fit vertically even when setting the attribute height like 100%.
<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">Panel</h3>
        </div>
        <div class="panel-body">
            <iframe width="100%" height="100%" src="http://superlp.com.br" frameborder="0"></iframe>
        </div>
    </div>
</div>Why does this happen? How to solve?
But the
iframeis using 100% of the elementdiv.panel-body. What would be your need?– Carlos Fernandes
You want the panel to extend to the entire page and the iframe to accompany it?
– Andre Figueiredo
Exactly Andre Figueiredo. The page inside the iframe needs to appear completely without the scrollbar.
– Gustavo Piucco
Take a look at this question in the Soen: http://stackoverflow.com/questions/5867985/iframe-auto-100-height
– Renan Gomes
As Carlos said, the
iframeis already occupying 100% of the height of the parent element. What remains to do is to force the parent element (div) to occupy all available space.– Andre Figueiredo
Take a look http://jsfiddle.net/g206hbh9. and see if that’s it.
– Erika_Mac
Friend might have some div of yours that limits him before, already looked at this?
– Marconi