-
Notifications
You must be signed in to change notification settings - Fork 1
/
lesson_44.html
108 lines (94 loc) · 2.76 KB
/
lesson_44.html
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Ext.layout.container.Absolute-犸特头</title>
<!-- extjs -->
<link rel="stylesheet" type="text/css" href="../ext-4.2.1.883/resources/css/ext-all-neptune.css">
<!--<script type="text/javascript" src="../extjs/ext-all.js"></script>-->
<script type="text/javascript" src="../ext-4.2.1.883/ext-all-debug-w-comments.js"></script>
<script type="text/javascript" src="../ext-4.2.1.883/locale/ext-lang-zh_CN.js"></script>
<style type="text/css" >
body{padding: 20px 0 0 20px;}
h3{padding:none;margin:none;}
.add{ background-image: url(../ext-4.2.1.883/examples/menu/images/add.gif) !important;}
.add16{ background-image: url(../ext-4.2.1.883/examples/menu/images/add16.gif) !important;}
.block {
border: 1px red solid;
height:80px;
margin-top:50px;
padding:20px 0 0 20px;
clear:both;
}
.item {
border: 1px #000 solid;
margin-right:10px;
width: 200px;
height: 40px;
text-align:center;
padding-top:20px;
color:White;
cursor:pointer;
}
.my-body-class{backgroud-color:red;}
</style>
</head>
<body>
<script type="text/javascript">
// 设置项目
Ext.application({
name: 'MyApp', // 项目名称
//appFolder : 'app' // 项目文件 。默认值为 app
launch: function() {
Ext.create('Ext.form.Panel', {
title: '绝对-布局',
width: 300,
height: 275,
layout: {
type: 'absolute'
// layout-specific configs go here
//itemCls: 'x-abs-layout-item',
},
url:'save-form.php',
defaultType: 'textfield',
items: [{
x: 10,
y: 10,
xtype:'label',
text: '发送:'
},{
x: 80,
y: 10,
name: 'to',
anchor:'90%' // anchor width by percentage
},{
x: 10,
y: 40,
xtype:'label',
text: '主题:'
},{
x: 80,
y: 40,
name: 'subject',
anchor: '90%' // anchor width by percentage
},{
x:0,
y: 80,
xtype: 'textareafield',
name: 'msg',
anchor: '100% 100%' // anchor width and height
}],
//renderTo: Ext.getBody()
renderTo: 'display'
});
}
});
</script>
<div id="display">
</div>
<a href="../ext-4.2.1.883/docs/index.html#!/api/Ext.layout.container.Absolute" target="_blank"><h3>Ext.layout.container.Absolute</h3></a>
<a href="http://blog.mttqq.com" target="_blank"><h3>犸特头-Extjs4更多学习</h3></a>
<h3>Q群:311176787</h3>
<a target="_blank" href="http://wp.qq.com/wpa/qunwpa?idkey=f50865b2598688abcae47cca8ae48b5c1ea26a45194c640071eefdd7212d3a2e"><img border="0" src="http://pub.idqqimg.com/wpa/images/group.png" alt="extjs 技术交流" title="extjs 技术交流"></a>
</body>
</html>