我有以下代码。
如何设置标题/行/ alt。行样式那里?
@Html.Grid(Model.PagedList).Columns(
col =>
{
col.For(c => c.Name).Named("Name");
col.For(c => c.City).Named("City");
col.For(c => c.StateName).Named("State");
col.For(c => c.StartDateString).Named("Start Date");
col.For(c => c.EndDateString).Named("End Date");
} ).Sort(Model.GridSortOptions).Attributes(@class => "grid")
答案 0 :(得分:2)
希望这会对你有所帮助
table.grid {
/*table style */
}
tr.gridrow {
/*row style */
}
.grid tr th
{
/*header style */
}
.gridrow td {
/*table data style in a row */
}
.gridrow_alternate td {
/*table data style in an alternate row */
}
tr.gridrow_alternate {
/* alternate row style */
}