1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head>
    <title>ExtJs</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <link rel="stylesheet" type="text/css" href="ExtJs/packages/ext-theme-crisp/build/resources/ext-theme-crisp-all.css">
      <script type="text/javascript" src="ExtJs/ext-all.js"></script>
      <script type="text/javascript" src="ExtJs/bootstrap.js"></script>
      <script type="text/javascript" src="ExtJs/packages/ext-theme-crisp/build/ext-theme-crisp.js"></script>
        <script type="text/javascript">
            Ext.onReady(function(){
          Ext.create('Ext.panel.Panel', {
            title: 'Ext.layout.container.Auto',
            frame: true,
            width: 250,
            renderTo: Ext.getBody(),
            bodyPadding: 5,
            //layout: 'auto',
            //layout: 'fit',
            layout: 'accordion',
            defaults: {
              bodyStyle: 'background-color: #FFFFFF'
            },
            items: [{
              title: 'Panel One',
              html: 'Panel One'
            },{
              title: 'Panel Two',
              html: 'Panel Two'
            },{
              title: 'Panel Three',
              html: 'Panel Three'
            }]
          });
        });
    </script>
</head>
<body>
  <!--
  <table border=1 id='localElement'>
    <tr><th colspan="2">Staff List</th></tr>
    <tr>
      <th width="60">Number</th>
      <th width="60">Value</th>
    </tr>
    <tr><td>1</td><td>One</td></tr>
    <tr><td>2</td><td>One</td></tr>
    <tr><td>3</td><td>One</td></tr>
    <tr><td>4</td><td>One</td></tr>
    <tr><td>5</td><td>One</td></tr>
    <tr><td>6</td><td>One</td></tr>
    <tr><td>7</td><td>One</td></tr>
    <tr><td>8</td><td>One</td></tr>
    <tr><td>9</td><td>One</td></tr>
  </table>
-->
</body>
</html>

  ExtJs布局之accordion,fit,auto

相关文章: