在剑道角度网格中更改onclick选定文本的颜色
有人可以帮助我更改剑道角度网格中的onclick选定文本的颜色吗.
Can someone help me in changing the color of onclick selected text in kendo angular grids.
::selection
is the property you are looking for to change the selected text color (see this answer for more details).
要使其适用于您的剑道网格,请使用以下CSS:
To get this to apply to your kendo grid, use the following CSS:
.k-grid ::selection {
background-color: #3399FF;
color: #fff;
}
如果仍然遇到问题,请确保将CSS应用于全局范围.由于样式封装,这是影响第三方样式的最简单方法组件,例如Kendo网格.
If you are still having trouble, make sure you are applying your CSS to the global scope. Because of style encapsulation, this is the easiest way to affect the styling of a third party component such as the Kendo grid.
注意:我选择了蓝色#3399FF
和白色#fff
文本,以将突出显示颜色更改回Internet Explorer的标准.请参阅此答案,以了解有关各种浏览器的默认颜色.
Note: I chose this blue #3399FF
with white #fff
text to change the highlight color back to the standard for internet explorer. See this answer for more details about the default colors for various broswers.