我有以下布局,我需要调整“中心窗格”的大小以适应屏幕(100%)。使用以下代码,我无法获得结果。我究竟做错了什么?如何解决?
<div data-dojo-type="dijit/layout/BorderContainer" style="width: 100%; height: 100%" id="xxx-dijit-layout-app">
<div data-dojo-type="dijit/layout/ContentPane data-dojo-props=" region:'top'" id="xxx-dijit-layout-control">Top pane</div>
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'" id="xxx-dijit-layout-workspace">Center pane</div>
</div>
#xxx-dijit-layout-app {
width: 100%;
height: 100%;
}
#xxx-dijit-layout-control {
height: 100px;
background-color: red;
}
#xxx-dijit-layout-workspace {
height: 100%;
background-color: yellow;
}