我试图在自举面板中显示flot plot,利用可用的全高,从面板关闭开始。当我打开面板时,图形的高度不断增长。
<div class="container">
<div class="panel panel-default" >
<div class="panel-heading">
<h4 class="panel-title ">
<a data-toggle="collapse" data-target="#panel1" >
<h3>Flot Example - fill height when opened</h3>
</a>
</h4>
</div>
<div class="panel-collapse collapse" id="panel1">
<div class="panel-body">
<div id="placeholder"></div>
</div>
</div>
</div>
</div>
这个jsfiddle演示了这个问题:http://jsfiddle.net/65w5xor5/13/