Auto布局

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户登录界面</title>
    <script typt="text/javascript" src="../ext/ext-all.js"></script>
    <link rel="stylesheet" href="../ext/resources/css/ext-all.css"/>
</head>
<body>
<div id=""></div>
<script typt="text/jjavascript">
    Ext.onReady(function () {
        var autoPanel=new Ext.panel.Panel({
            title:'auto面板布局',
            renderTo:Ext.getBody(),/*进行渲染*/
            height:300,
            widht:400,
            layout:'auto',
            items:[{/*元素集*/
                title:'面板一',
                html:'面板二'
            },{/*元素集*/
                title:'面板二',
                html:'面板二'
            },{/*元素集*/
                title:'面板三',
                html:'面板三'
            },{/*元素集*/
                title:'面板四',
                html:'面板四'
            },]
        });
    });
</script>
</body>
</html>

猜你喜欢

转载自blog.csdn.net/weixin_42666837/article/details/83001246