简体   繁体   中英

How to change the color of Kendo Grid elements

Is it possible to change the grid color element in Kendo UI?

在此输入图像描述

I have changed the color of the text, without a problem:

.k-grid th.k-header,
.k-grid th.k-header .k-link
{
    color:white;
}

How to change the color of the arrow?

The arrow is a png so you have to create your own image and then select it as:

#grid .k-icon.k-i-arrow-n {
    background-image: url('path to the image');
    background-position: 0 0;
}

You might try playing with CSS transformation and see if you can get the color that you want but that uses to be very easy if they were defined as fonts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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