我有一个简单的 BorderContainer 设置了一个中心和底部区域。
<div dojoType="dijit.layout.BorderContainer">
<div dojoType="dijit.layout.ContentPane" region="center">
<!-- Some big content -->
</div>
<div dojoType="dijit.layout.ContentPane" doLayout="false" region="bottom" id="log">
<span class="log_msg">First message</span><br/>
<span class="log_msg">Second message</span><br/>
<span class="log_msg">Third message</span><br/>
</div>
</div>
如您所见,底部窗格旨在成为类似于 Eclipse IDE 的日志。我希望日志 div 占据底部窗格的 100%(边距很好),稍后我将添加拆分器。但是,目前它的高度适合其内容,如果内容太多,文本就会简单地隐藏在屏幕之外。(“溢出”css 规则不适用,因为日志 div 本身足够大以容纳文本,它只是在屏幕外。)
我可以应用哪些样式规则来达到预期的效果?谢谢!