我只是想知道是否有人能够成功地将字段集中的复选框字段左对齐;我的尝试失败了。
{
xtype : 'checkboxfield',
name : 'remember',
label : 'Store information',
style: 'float: left'
}
图片更好:
最佳答案
我能够将checkboxfield
向左对齐
。查看下面的代码...
{
xtype: 'checkboxfield',
name : 'tomato',
value: 'tomato',
checked: true,
label: 'Tomato',
labelWidth: '70%',
labelAlign: 'right'
}
输出:-
关于checkbox - 如何在 sencha touch 2 中左对齐复选框字段?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10499677/