我想将 aTabContainer
放在 a 的顶部区域内,BorderContainer
如下所示:
<div id="appLayout" data-dojo-type="dijit/layout/BorderContainer">
<div data-dojo-type="dijit/layout/TabContainer" data-dojo-props="region: 'top'">
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Tab 1'">tab 1</div>
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Tab 2'">tab 2</div>
</div>
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region: 'center'">center</div>
</div>
当我尝试这个时,它TabContainer
是不可见的。TabContainer
当我将 放置在 的中心区域时,一切正常BorderContainer
:
<div id="appLayout" data-dojo-type="dijit/layout/BorderContainer">
<div data-dojo-type="dijit/layout/TabContainer" data-dojo-props="region: 'center'">
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Tab 1'">tab 1</div>
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Tab 2'">tab 2</div>
</div>
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region: 'bottom'">bottom</div>
</div>
为什么TabContainer
顶部区域不可见?我可以让它可见吗?
编辑: 的内容TabContainer
具有可变高度,所以我不想手动设置高度。