textareafield背景颜色没有完全改变

时间:2014-07-02 07:59:24

标签: html css extjs

我在面板中添加了一个textareafield,默认情况下为白色背景。但我想隐藏白色并给它浅蓝色,这样它就会落入面板中。正如你在图像上看到的那样,textareafield的顶部(第一行)保持白色。有谁知道为什么,以及如何解决这个问题? 我生成textareafield的代码是:

        xtype: 'textareafield', 
        readOnly: true, 
        height: 150,
        fieldStyle: 'background-color: #DFE9F6', 
        value: warning,
        id: 'textareaField'

enter image description here

1 个答案:

答案 0 :(得分:1)

您还需要删除背景图片。请尝试

xtype: 'textareafield', 
readOnly: true, 
height: 150,
fieldStyle: 'background-color: #DFE9F6; background-image: none;', 
value: warning,
id: 'textareaField'