2015-09-04 76 views
0

能有人告訴如何在煎茶觸摸到圖像中的文本字段如何在煎茶添加圖像文本框

我要顯示的圖像和文本框 圖片用戶ID

感謝

+2

可能重複http://stackoverflow.com/questions/26447925/how-to-add-an-image-in-textfield-in-sencha-touch –

回答

0

使用CSS去做這個。

.imagefield .x-form-field { 
    background: url(../icons/icon.png) no-repeat; /*your file path*/ 
    background-size: contain; 
} 

在您的組件中添加屬性cls:'imagefield'。