Sencha Touch 交流 QQ 群 224711028
例子:
index.js
Ext.setup({
onReady: function() {
new Ext.form.FormPanel({
fullscreen: true,
items: [{
xtype: 'textfield',
label: 'Name',
cls: 'customField',
placeHolder: 'Insert your name here'
},{
xtype: 'textfield',
label: 'Surname',
placeHolder: 'Insert your surname here'
}]
});
}
});
style.css
.customField input::-webkit-input-placeholder {
color: #2e4bc5;
}