你想要做這樣的事情?
<div id="closureSection" data-dojo-type="dijit/TitlePane" title="Distance Measurement" data-dojo-props="title:'Distance Measurement', open:false">
<div id="measurementDiv"></div>
</div>
<div id="dataLayerSection" data-dojo-type="dijit/TitlePane" title="Content Section 02" data-dojo-props="label:'Click to Expand', open:false">
</div>
<div id="mapLegendSection" data-dojo-type="dijit/TitlePane" title="Content Section 03" data-dojo-props="label:'Click to Expand',open:false">
</div>
<div id="disclaimerSection" data-dojo-type="dijit/TitlePane" data-dojo-Props="label:'Click to Expand',open:false" title="Content Section 04">
</div>
Link to fiddle
我改變了ContentPanes到TitlePanes。在你可以宣佈:虛假的數據道場 - Probs
問候,楊千嬅
的jsfiddle鏈接:http://jsfiddle.net/D9NDn/ – Sunil
究竟是你想做些什麼?要設置ContentPane的高度,請使用css。如果您想隱藏測量工具,請使用:measurement.hideTool(「位置」)。 – MiBrock