Tabular reports ladder background color effect

A row of tabular data reports, view data on a page is likely to cause confusion, for ease of viewing data, usually done in the page dynamic background color , interlaced Harmonia effect can also do this kind of stepped under the map.

1png

Analysis of this table what is the law, then count the header row, first column of the data area is dark gray, the second column of the second row and the seventh row and fifteenth row is not a dark gray, line number to take more than 5 is not a dark gray 2; the third column of the second and third lines, seventh, eighth row is not a dark gray, which is to take over after the line number 5, is not a dark gray 2 or 3, the other columns also and so on.

Here I comes under orders designer table, for example, to achieve the effect on the lower figure.

1. Select A2, set the background color value, double the value of that color, dialog box, set the RGB values ​​(205,205,205);

2png

2. Select B2, background color expression, double expression that column, is provided in the dialog box expression: if (row () == 2 || row ()% 5 == 2, -394759, - 3,289,651), wherein if the function of two parameters, the parameters corresponding to the three color values ​​are color values ​​is selected by double-clicking to the expression backfill color box pop-up box.

3png

C2 is the background color and the color setting is the same as B2 arrangement, expression is specifically: if (row ()% 5 == 2 || row ()% 5 == 3, -394759, -3289651).

D2 expression for the background color if (row ()% 5 == 2 || row ()% 5 == 3 || row ()% 5 == 4, -394759, -3289651).

E2 background color expression is: if (row ()% 5 == 2 || row ()% 5 == 3 || row ()% 5 == 4 || row ()% 5 == 0, - 394,759, -3,289,651).

3. Select the entire table, then all borders are set to the color white.

4png

eid bid and the two parameters are given default values ​​10248,10267, respectively of 15 orders.

5png
After the above settings, we can see the effect of three layers 5 of the ladder preview.

6png

Published 48 original articles · won praise 13 · views 20000 +

Guess you like

Origin blog.csdn.net/zozoxxma/article/details/103710830