案例:Extjs案例     状态:可编辑再运行    进入竖版
 运行结果 
AخA
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
   <link href="//cdn.bootcss.com/extjs/6.2.0/classic/theme-classic/resources/theme-classic-all.css" rel="stylesheet" />
5
   <script type="text/javascript" src="//cdn.bootcss.com/extjs/6.2.0/ext-all.js"></script>
6
   <script type="text/javascript">
7
      Ext.onReady(function() {
8
         Ext.create('Ext.container.Container', {
9
            renderTo: Ext.getBody(),
10
            layout: 'absolute' ,
11
            items: [{
12
               title: 'Panel 1',
13
               x: 50,
14
               y: 50,
15
               html: 'Positioned at x:50, y:50',
16
               width: 500,
17
               height: 100
18
            },{
19
               title: 'Panel 2',
20
               x: 100,
21
               y: 95,
22
               html: 'Positioned at x:100, y:95',
23
               width: 500,
24
               height: 100
25
            }]
26
         });
27
      });
28
   </script>
29
</head>
30
<body>
31
</body>
32
</html>