【发布时间】:2018-07-26 03:10:01
【问题描述】:
我在 Ext JS 6.6 中构建了一个非常简单的登录页面,但在我的一生中,我似乎无法将登录按钮与表单字段的末尾对齐。无论我做什么,它都停留在左侧。
我该如何解决这个问题?
我使用的代码如下;
items: {
xtype: 'form',
reference: 'form',
items: [{
xtype: 'textfield',
name: 'username',
fieldLabel: 'Username',
allowBlank: false
}, {
xtype: 'textfield',
name: 'password',
inputType: 'password',
fieldLabel: 'Password',
allowBlank: false
}, {
xtype: 'button',
text: 'Login',
formBind: true,
style: {
marginTop: '10px',
padding: '5px 15px 5px 15px'
},
listeners: {
click: 'onLoginClick'
}
}]
}
【问题讨论】:
标签: javascript extjs extjs6