我已经设置了一个包含一些 dojo 小部件的布局,并且希望默认关闭具有内容窗格的侧边菜单。发生的情况是第一个保持打开状态并导致其他内容窗格消失。顺便说一句,内容窗格都在手风琴容器中
<!doctype html>
<html lang="en" dir="ltr">
<head>
<script src=
"https://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js"
djConfig="parseOnLoad: true"></script>
<title>Dijit Template</title>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/
libs/dojo/1.5/dijit/themes/claro/claro.css" />
</head>
<body class="claro">
<div style="width: 535px; height: 290px">
<div dojoType="dijit.layout.BorderContainer" style="width: 100%;
height: 100%;">
<div dojoType="dijit.layout.ContentPane" region="top" splitter="true">
This is the content in the top section.
</div>
<div dojoType="dijit.layout.ContentPane" region="left" style="width: 100px;"
splitter="true">
<div dojoType="dijit.layout.AccordionContainer"minSize="20"
style="width: 300px;" id="leftAccordion" region="leading" splitter="true">
<div dojoType="dijit.layout.ContentPane" title="HOME">
</div>
<div dojoType="dijit.layout.ContentPane" title="INSTANCES">
<div dojoType="dijit.TitlePane" title="Reader01">
</div>
</div>
<div dojoType="dijit.layout.ContentPane" title="DISCOVERY">
</div>
</div><!-- end AccordionContainer -->
</div>
<div dojoType="dijit.layout.ContentPane" region="center" splitter="true">
This is the content in the center section.
</div>
<div dojoType="dijit.layout.ContentPane" region="right"
style="width: 100px;"splitter="true">
This is the content in the right section.
</div>
<div dojoType="dijit.layout.ContentPane" region="bottom" splitter="true">
This is the content in the bottom section.
</div>
</div>
</div>
</body>
</html>