我有带有span7
and的Bootstrap布局span5
(在span12内)。我想隐藏span7并将span5展开为span12,当一个按钮点击平滑动画时。同样的方式,单击 sam 按钮,span7 和 span5 都应该显示。如何实现这一点?根据父跨度,内部内容也应该是灵活的。
<div id="summary-content" class="contentbar-main" style="display:none;">
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div class="row-fluid no-space">
<div class="span7" id="sidebarid">
<div class="myh4">My Summary</div>
<br>
<div id="summaryTableId"></div>
</div>
<div class="span5" id="contentbarid">
<div class="row-fluid">
<div class="span12">
<div>
<span class="summary-left-hide-arrow" id="toggle-button"></span>
<span class="myh4">Map</span>
</div>
<br>
<div id="#map-canvas" style="width:100%;height:400px;"></div>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<br>
<div class="myh4">Time Sheet</div><br>
<div id="newTableId"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>