Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs4 在extjs中更改表单中每个单元格的背景色_Extjs4 - Fatal编程技术网

Extjs4 在extjs中更改表单中每个单元格的背景色

Extjs4 在extjs中更改表单中每个单元格的背景色,extjs4,Extjs4,在更改单元格背景颜色的网格中,我们有如下代码: .later .x-grid-cell { background-color: #FFB0C4 !important; } .now .x-grid-cell { background-color: #5491BD !important; } 更改表单中每个单元格的背景颜色是否有类似的方法?尝试设置字段样式: fieldStyle: 'background-colo

在更改单元格背景颜色的网格中,我们有如下代码:

   .later .x-grid-cell {
         background-color: #FFB0C4 !important;     
   } 
   .now .x-grid-cell {
         background-color: #5491BD !important;     
   }

更改表单中每个单元格的背景颜色是否有类似的方法?

尝试设置字段样式:

fieldStyle: 'background-color: #ddd; background-image: none;'

我认为该物业是

.value .x-form-field{
    background : red;
}
如果将cls更改为值,则必须更改每个字段的背景

如果要单独更改每个字段,必须添加fieldStyle属性

fieldStyle: 'background: blue;'
在这把小提琴中有一个例子


我希望这有助于

我已经尝试过了,但它只为文本框等字段提供颜色。我想给标签和文本框后面的空格加上颜色。但它只给文本框、组合框等字段加上颜色。它不给标签加颜色,也给文本框、组合框等后面的空格加上颜色。我不知道我是否理解你的意思,但这里有一个对小提琴的修改,是这样的你想要什么?我已经试过了。但在这一点上,他们给出了锚定:“98%”。但我不想放弃。如果我删除它,文本框后面的空格将保留为白色。我想用同样的颜色填充。这是我最后一次尝试。。xD将显示:块添加到属性。这是我想要的。非常感谢你。它在ExtJS4.2.0中运行良好。但我希望它能在ExtJS4.1.0中工作。