当前位置: 代码迷 >> Web前端 >> 根本框架
  详细解决方案

根本框架

热度:363   发布时间:2013-11-09 17:06:34.0
基本框架
<html>
<head>
    <title></title>
    <link href="edo/res/css/edo-all.css" rel="stylesheet" type="text/css" />
</head>
<body>
</body>
</html>
<script src="edo/edo.js" type="text/javascript"></script>
<script type="text/javascript">
var module = new Edo.core.Module({
            width:  '100%',
             height: '100%'
});  
var head = Edo.build({
    type: 'box',    
    width:'100%',
    height: 90
});     
var main = Edo.build({
    type: 'ct',
    width: '100%',
    height: '100%',
    layout: 'horizontal',
    children:[
	{                
            type: 'panel',
            width: 200,
            height: '100%',
            collapseProperty: 'width',
            maxWidth: 200,
            enableCollapse: true,
            splitRegion: 'west',
            splitPlace: 'after'
        },
        {                
            type: 'box',
            width:'100%',
            height: '100%',
            children:[module]
        }
    ]
});      
Edo.build({
    type: 'app',
    render: '#body',
    children:[head,main]
});  
</script>

?

  相关解决方案