0
我有一個模式,我想根據iframe內容大小調整大小。根據iframe內容調整模式
我可以使模態大,但iframe的內容仍然與滾動條來。
這裏是github頁面的鏈接。點擊左上角的模式「One Minute Story」鏈接。
我想模態被精確地居中和iframe中的內容是一個SVG圖表來完美地在其內部,而不滾動。
<div id="story-modal" class="modal hide fade" >
<div class="modal-header">
<a href="#" class="close">×</a>
<h3>1 Minute Story!</h3>
</div>
<div id="storyChart" >
</div>
<script type="text/javascript">$("#storyChart").append($("<iframe />").attr("src", "/frame.html"));
</script>
</div>