Changing the color of onclick selected text in kendo angular grid

柔情痞子 提交于 2019-12-25 00:48:59

问题


Can someone help me in changing the color of onclick selected text in kendo angular grids.


回答1:


::selection is the property you are looking for to change the selected text color (see this answer for more details).

To get this to apply to your kendo grid, use the following CSS:

.k-grid ::selection {
  background-color: #3399FF;
  color: #fff;
}

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.

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.



来源:https://stackoverflow.com/questions/45547163/changing-the-color-of-onclick-selected-text-in-kendo-angular-grid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!