Use css to control the datagrid Style

Source: Internet
Author: User
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}

 
 
 
 
 
 
 
 
 
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.