在下面的HTML中,我想在顶部区域中显示彼此相邻的两个ContentPanes。在普通的HTML中,这可以使用spans或display:inline来完成。如何在Dijit中实现这一目标?
<div>
<div data-dojo-attach-point="_containerNode" data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="gutters: false, design: 'headline'">
<div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region: 'top'">
</div>
<div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region: 'top'">
</div>
<div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region: 'center'">
</div>
</div>
答案 0 :(得分:0)
将两个div包装在另一个BorderContainer中,如:
<div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="gutters: false, design: 'headline'">
<div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region: 'top', gutters: false">
<div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region: 'left'"> </div>
<div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region: 'right'"> </div>
</div>
<div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region: 'center> </div>
</div>