复制代码
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
64Ext.namespace("com.deng"); /** * frame([String color],[Number count],[Object options]): * 展示一个展开的波纹,伴随着渐隐的边框突出显示Element对象。默认情况下展示的是一个淡蓝色的波纹 * 参数: * color: 波纹颜色 * count: 波纹个数 * options: 选项配置 * * 实例: 三个红色的波纹并持续3秒 */ /** Ext.onReady(function(){ Ext.get("a1").applyStyles({ position: "absolute", top: 200, left: 400, backgroundColor: "red", width: 100, height: 100 }).frame("ff0000",3,{duration:5}); }); */ /** * fadeIn([Object options]): 将元素从透明渐变为不透明。结束时间的透明度可以根据"endOpacity"选项来指定 */ /** Ext.onReady(function(){ Ext.get("a1").applyStyles({ position: "absolute", top: 200, left: 400, backgroundColor: "red", width: 100, height: 100 }).fadeIn({ endOpacity: 1,//可以是0到1之间的任何值 如.5 (.5就是0.5) duration: 4 }); }); */ /** * fadeOut([Object options]): 将元素从不透明渐变为透明,结束时的透明度可以根据"endOpacity"选项来指定 */ Ext.onReady(function(){ Ext.get("a1").applyStyles({ position: "absolute", top: 200, left: 400, backgroundColor: "red", width: 100, height: 100 }).fadeOut({ endOpacity: 0, duraiton: 4, remove: false, useDisplay: false }); });
最后
以上就是坚定眼神最近收集整理的关于Ext学习之3_类Element和Fx3的全部内容,更多相关Ext学习之3_类Element和Fx3内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复