iframe中的Bootstrap行流体

时间:2013-02-08 12:44:30

标签: javascript jquery html twitter-bootstrap

我创建了一个引导模态窗口,我在其中放置了一个iframe。

现在,当我尝试使用row-fluid bootstrap类时,所有行都是相互重叠的。

这只发生在firefox而不是Google Chrome中。

建议请。

<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" >
<div id="myModalBody" class="modal-body">
    <button type='button' class='close' data-dismiss='modal' aria-hidden='true'></button>
    <h3 id='myModalLabel'>Profile</h3>
    <iframe id='profile'  width='99.5%' height='94%' style='border-width: 0;' scrolling='no'></iframe>
</div>



 function setprofile(id)
{
    profileid=id;

    $('#profile').attr('src','profile.php?profileid=" + profileid + "');

}

1 个答案:

答案 0 :(得分:0)

我遇到了类似的问题,并发现我使用了错误的元素。这是我的问题和解决方案Bootstrap code in an iframe is not rendered properly