2012-03-14 56 views

回答

2

實現,最簡單的方法是重寫其無效行爲基礎CLS類的元素:

.x-form-invalid-field, textarea.x-form-invalid-field { 
    background-image: none; 
}​ 

最推薦的方法是創建一個自定義CSS類做同樣的東西,作爲屬性應用到元素(組件):

.x-form-invalid-field-without-underline { 
    background-image: none; 
}​ 

Ext.create('Ext.form.field.Text', { 
    ... , 
    invalidCls: 'x-form-invalid-field-without-underline' 
});