Dojo TabContainer没有样式

时间:2013-11-17 17:00:28

标签: javascript css dojo

由于某种原因,样式元素未应用于TabContainer。标签标题显示为彼此相邻的纯黑白文本。

      <script src="http://localhost/dojo/1.9.1/dojo/dojo.js" data-dojo-config="async:true,parseOnLoad:true"></script>
      <link href="http://localhost/dojo/1.9.1/dojo/resources/dojo.css" type="text/css" rel="stylesheet" />
      <link href="http://localhost/dojo/1.9.1/dijit/themes/claro/claro.css" type="text/css" rel="stylesheet" />
      <link href="http://localhost/dojo/1.9.1/dojox/grid/enhanced/resources/claro/EnhancedGrid.css" type="text/css" rel="stylesheet" />
    </head>
    <body>
      <div id="mainUIContainer" data-dojo-type="dijit/layout/TabContainer" region='center' style="width: 100%; height: 100%;">
        <div id="numbersGridTab" data-dojo-type="dijit/layout/ContentPane" style="width: 100%; height: 100%;" title="Grid">
          <div id="numbersGridHolder" style="width: 900px; height: 400px;"></div>
        </div>
        <div id="textBlobTab" data-dojo-type="dijit/layout/ContentPane" style="width: 100%; height: 100%;" title="crap">
          lorem ipsum dolor
        </div>
      </div>
      <script>
        require([
          "dijit/layout/ContentPane",
          "dijit/layout/TabContainer",
          "dojo/domReady!"
        ], function(){
           makeGrid();
        });
      </script>