简体   繁体   English

更改当前选定字段的颜色

[英]Change color of currently selected field

How do I change the color of the currently selected record in extjs combobox? 如何更改extjs组合框中当前选定记录的颜色? As you can see the image below, the record Petty Cash Fund is the currently selected item on my dropdown but the highlight color is not noticeable. 如下图所示,记录Petty Cash Fund是下拉菜单中当前选中的项目,但是突出显示的颜色并不明显。 How do I change this for all the combobox in my application? 如何为应用程序中的所有组合框更改此设置?

在此处输入图片说明

The selected element in a combobox has the css class x-boundlist-selected . 组合框中的selected元素具有css类x-boundlist-selected Just override its color in your custom css. 只需在自定义CSS中覆盖其颜色即可。

Or, since it is a built-in style, you could change $boundlist-item-selected-background-color in the template 或者,由于它是内置样式,因此您可以在模板中更改$boundlist-item-selected-background-color

Tip: Use Chrome Developper Tools 提示:使用Chrome开发人员工具

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM