-
Notifications
You must be signed in to change notification settings - Fork 1
/
lesson_3.html
68 lines (64 loc) · 1.76 KB
/
lesson_3.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>extjs-Window</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-left:5px;}
</style>
</head>
<body>
<script type="text/javascript">
// 第二个例子
Ext.onReady(function() {
var win2 = Ext.create('widget.window', {
height: 200,
width: 400,
x: 450,
y: 450,
title: 'Constraining Window, plain: true',
closable: false,
plain: true,
layout: 'fit',
items: [constrainedWin = Ext.create('Ext.Window', {
title: 'Constrained Window',
width: 200,
height: 100,
// Constraining will pull the Window leftwards so that it's within the parent Window
x: 1000,
y: 20,
constrain: true,
layout: 'fit',
items: {
border: false
}
}), constrainedWin2 = Ext.create('Ext.Window', {
title: 'Header-Constrained Win',
width: 200,
height: 100,
x: 120,
y: 120,
constrainHeader: true,
layout: 'fit',
items: {
border: false
}
}),{
border: false
}]
});
win2.show();
constrainedWin.show();
constrainedWin2.show();
});
</script>
<a href="../ext-4.2.1.883/examples/window/window.html"><h3>examples</h3></a>
<a href="../ext-4.2.1.883/docs/index.html#!/api/Ext.window.Window"><h3>doc</h3></a>
<a href="http://blog.mttqq.com"><h3>犸特头-Extjs4更多学习请加QQ群)311176787</h3></a>
</body>
</html>