格式dojo DataGrid标题行 [英] format dojo DataGrid header row

查看:164
本文介绍了格式dojo DataGrid标题行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的程序化创建的Dojo DataGrid的标题行指定一个背景颜色。我试图通过添加.dojoxGridHeader或.dojoxGrid-Header到我的样式表来覆盖默认值,但是这些没有效果。

I want to assign a background color to my programmatically created Dojo DataGrid's header row. I've tried to override the defaults by adding .dojoxGridHeader or .dojoxGrid-Header to my style sheet, but these have no effect.

有另一种方法,如与Dojo事件或属性?如果我的样式表是唯一的方式,我使用错误的类吗?

Is there another way, such as with a Dojo event or property? If my style sheet is the only way to go, am I using the wrong class?

谢谢!
Alan

Thanks! Alan

推荐答案

借助Internet Explorer的开发工具,我发现了哪些CSS类控制了风格Dojo DataGrid标题行。

With the help of Internet Explorer's "Developer Tools," I discovered which CSS classes controlled the styling of the Dojo DataGrid header row.

我需要在.dojoxGridHeader前面添加.tundra,因为.tundra样式表位于层次结构的顶部。

I needed to add ".tundra" in front of .dojoxGridHeader because the .tundra stylesheet is at the top of the hierarchy.

这适用于我:

.tundra .dojoxGridHeader, .tundra .dojoxGridHeader .dojoxGridCell {

    vertical-align: bottom;
    color: #FFFFFF !important;
    background: #530619;
    border-color: #ECE2D8;
    font-weight: bold;
}

这篇关于格式dojo DataGrid标题行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆