2014-04-13 14 views

回答

0

这是一个html label的默认行为,则需要防止这种情况,例如使用jQuery:

$('label[for="fieldId"]').click(function(e) { 
    e.preventDefault(); 
}); 
0

在你的文本框的配置,你可以指定一个“fieldCls”。 Click here to read the doc

 { 
      itemId: 'txtItemId', 
      xtype: 'textfield', 
      fieldCls: 'x-text-field-sample', // The name you want 
      name: 'name', 
      fieldLabel: 'Name' 
     } 

你只需要你的文本框的CSS重新定义到您的css文件是这样的:

.x-text-field-sample { 
    background-image:none; 
    border-color:#000000; 
}