sencha touch 两个selectfield之间如何设置间距

来源:互联网 发布:未来教育软件下载 编辑:程序博客网 时间:2024/06/11 10:13

如图lz遇到了这样的一个问题:

Sencha Touch 交流 QQ 群 224711028 欢迎您的加入。

 

如何在两个selectfield之间设置间距,

试验之后发现在fieldset之中无法设置间距,换做嵌套在panel之后,设置间距成功:

 

?
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
xtype:'panel',
 
                        items:[{
                            xtype:'selectfield',
                            id:'categoryCB',
                            placeHolder:'f查询',
                            //usePicker:true,
                            options: [
                                {text:'First Option',  value: 'first'},
                                {text:'Second Option', value: 'second'},
                                {text:'Third Option',  value: 'third'},
 
                            ],
                            style:'border-radius:0.4em'
                        },{
                            xtype:'spacer',
                            height:5
                        },
                        {
                                xtype:'selectfield',
                                style:'border-radius:0.4em',
                                id:'floorCB',
                                placeHolder:'c查询',
                                options: [
                                    {text:'First Option',  value: 'first'},
                                    {text:'Second Option', value: 'second'},
                                    {text:'Third Option',  value: 'third'}
                                ]
 
                        }]

 

搞定

原创粉丝点击