Table.sample Tr {Background-color: expression ((this.sectionrowIndex% 2 == 0)? "GRAY": "Green")}
Table.sample1 Td {background-color: expression ((this.cellindex% 2 == 0)? "Gray": ((this.parentelement.sectionrowIndex% 2 == 0)? "# 66ff00": "# 66ccff") }
->
style>
HEAD>
Chapter 1 TD> | Chapter 1 TD> TR>
|
Chain 2 TD> | Chain 2 TD> TR>
|
Chapter 3 TD> | Chapter 3 TD> TR>
|
Chapter 4 TD> | Chapter 4 TD> TR>
|
Chapter 5 TD> | Chapter 5 TD> TR>
TABLE>
Chapter 6 TD> | Chapter 6 TD> TR>
| Chapter 7 TD> | Chapter 7 TD> TR>
| Chapter 8 TD> | Chapter 8 TD> TR>
| Chapter 9 TD> | Chapter 9 TD> TR>
| Chapter 10 TD> | Chapter 10 TD> TR>
TABLE>
Body>
Html>
Note:
Table.sample Tr {Background-color: expression ((this.sectionrowIndex% 2 == 0)? "GRAY": "Green")}
Table.Sample Tr Defines the Table of Class for Sample Table.
Expression: The included is
JavaScript code
You can also define your own properties in the Class, such as mysample: sample = function () {.....},
转载请注明原文地址:https://www.9cbs.com/read-55680.html
| |