EXT 在文本框中加入图标。
定义css:
.login{ background-image:url(/ExtDwrJson/images/login_user.gif) !important; background-repeat:no-repeat; background-position:right; } .password{ background-image:url(/ExtDwrJson/images/password.gif) !important; background-repeat:no-repeat; background-position:right; }
使用css:
{ xtype:"textfield", fieldLabel : "TestCss", width : 150, cls : "login" }