0
我的CSS文件看起來像這樣:如何設置Kendo圖表標題中的字體顏色?
#productGrid .k-grid-header .k-header
{
background-color: blue;
color: white !important;
}
本工程爲背景色,但不是字體顏色!
我網的代碼如下所示:
@(Html.Kendo().Grid<ProductSummary>()
.Name("productGrid")
.Columns(columns =>
{
columns.Bound(c => c.Product);
columns.Bound(c => c.Quantity);
columns.Bound(c => c.Value).ClientTemplate("£#= kendo.toString(Value, \"n2\") #");
columns.Bound(c => c.Percentage).Title("%");
})
.HtmlAttributes(new { style = "height: 550px;" })
.Scrollable()
.Sortable()
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Products_Read", "Products", new { region = ViewBag.regions[Model.RegionPos].Value }))
)