0

您好我无法在 jsFiddle 中显示 BorderContainer 和 ContentPane 虽然我能够在 Firefox 浏览器中显示。那么我在 jsfiddle 中缺少什么?

这是我在 jsfiddle 中的工作

<div id="main_bContainer" data-dojo-type="dijit/layout/BorderContainer"
data-dojo-props="design:'sidebar'">
<div class="cP_Left" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'">ContentPane A</div>
<div class="cP_Right" data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'right'">ContentPane B</div></div>

require(["dojo/ready",
"dojo/_base/declare",
"dojo/dom-construct",
"dijit/_WidgetBase",
"dojo/dom",
"dojo/on",
"dojo/parser",
"dojo/domReady!"], function (ready, declare, domConstruct, _WidgetBase, dom, on, parser) {
ready(function ()
parser.parse(); // check out more!

}); 
});

克莱门特

4

1 回答 1

1

你错过了几件事:

  1. <body class="soria">围绕你的 dom的包装标签
  2. soria 主题的 css 链接错误
  3. 一些缺少的括号。

我更新了jsfiddle

域名:

<body class="soria">
    <div id="main_bContainer" data-dojo-type="dijit/layout/BorderContainer"
    data-dojo-props="design:'sidebar'">
        <div class="cP_Left" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'">ContentPane A</div>
        <div class="cP_Right" data-dojo-type="dijit/layout/ContentPane"
        data-dojo-props="region:'right'">ContentPane B</div>
    </div>
</body>

代码:

require(["dojo/ready",
    "dojo/_base/declare",
    "dojo/dom-construct",
    "dijit/_WidgetBase",
    "dojo/dom",
    "dojo/on",
    "dojo/parser",
    "dojo/domReady!"], function (ready, declare, domConstruct, _WidgetBase, dom, on, parser) {
    ready(function () {
        parser.parse(); // check out more!
    });
});
于 2013-02-04T13:29:10.643 回答