zoukankan      html  css  js  c++  java
  • ExtJs4.1布局具体解释

    Border布局:

    Ext.onReady(function(){
        Ext.QuickTips.init();
        Ext.create('Ext.container.Viewport', {   //通常是渲染到viewport中
            title: "table布局的面板",
            layout:'border',
            defaults: {
                collapsible: true,  //可收起
                split: true,
                bodyStyle: 'padding:15px'
            },
            items: [{
                title: '上面north',
                region: 'north',      //位置
                height: 100
            },{
                title: '以下south',
                region: 'south',    //位置
                height: 150,
                minSize: 75,
                maxSize: 250
            },{
                title: '左面west',
                region:'west',    //位置
                margins: '5 0 0 0',
                175,
                minSize: 100,
                maxSize: 250
            },{
                title: '中间Content',
                collapsible: false,  //不可收起
                region:'center',    //位置
                margins: '5 0 0 0'
            },{
                title: '右面east',
                175,
                region:'east',   //位置
                margins: '5 0 5 5'
            }]
        });
    })

    效果图:


  • 相关阅读:
    【Jsoi2010】连通数
    【CQOI2009】中位数图
    【POJ 1151】 Altlantis
    【2017省中集训】 香港记者
    【AHOI2009】中国象棋
    【SCOI 2009】 Windy数
    【HDU 4722】 Good Numbers
    【HDU 2089】 不要62
    BZOJ3129 SDOI2013方程(容斥原理+扩展lucas)
    BZOJ1042 HAOI2008硬币购物(任意模数NTT+多项式求逆+生成函数/容斥原理+动态规划)
  • 原文地址:https://www.cnblogs.com/llguanli/p/6937885.html
Copyright © 2011-2022 走看看