0
我想在頁面中使用DOJO邊框容器。我有這個樣本。在DOJO邊框容器中創建列
<script>
require(["dijit/layout/BorderContainer", "dijit/layout/ContentPane","dojo/domReady!"],
function(BorderContainer, ContentPane){
// create a BorderContainer as the top widget in the hierarchy
var bc = new BorderContainer({
style: "height: 300px; width: 500px;"
});
// create a ContentPane as the center pane in the BorderContainer
var cp2 = new ContentPane({
region: "center",
content: "how are you?,this is a test content"
});
bc.addChild(cp2);
// put the top level widget into the document, and then call startup()
bc.placeAt(document.body);
bc.startup();
});
</script>
我想創建一些列,使它看起來像一個表。我怎樣才能做到這一點?? 有人可以幫助我
BorderContainer不起作用。看例子。你看起來像一張桌子,你究竟明白了什麼? –
我想要2-3列和10行。 – Bittu