Using css to control the datagrid style although the system provides several styles that can be directly applied, you still need to write css styles by yourself in most cases. My problem is to implement the following styles, how to Write css? I don't need to add "bordercolor = black" to the datagrid "?
I haven't gotten it out for a long time, and I haven't completely added the style to the css file. My implementation method is
1. Add "bordercolor = black" to the datagrid"
2,
<ItemStyle CssClass = "dg_item"> </ItemStyle> <HeaderStyle CssClass = "dg_header"> </HeaderStyle>
3. css style: 1. dg_item
2 {}{
3 color: #330099;
4 background-color: expression (this. sectionRowIndex % 2 = 0 )? '# E5ECF4': '# F2F2F2 ');
5 border-width: 1px;
6 border-color: #000000;
7 border-style: solid;
8}
9. dg_header
10 {}{
11 font-weight: bold;
12 color: #000000;
13 background-color: # E5ECF4;
14 border-width: 1px;
15 border-color: #000000;
16 border-style: solid;
17
18}