样式:
- .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;
- }
在js 里添加样式:
- {
- xtype:"textfield",
- fieldLabel : "TestCss",
- width : 150,
- cls : "login"
- }