Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/01/2008, 12:00
ericaadbr
 
Fecha de Ingreso: enero-2008
Mensajes: 203
Antigüedad: 16 años, 4 meses
Puntos: 1
Re: Urgente!!! DisplayTag - filas pares e impares de diferente color en una tabla

hola, pues aunque ya es algo tarde, cuando yo comenze a utilizar displaytags consegui un articulo en el que comentan como se realiza esto, si te fijas en la pagina web oficial dice cuales con los nombres que debes colocar en las hojas de estilo para que eso te funcione asi, mira, es algo asi

thead tr {
background-color: #0A3C68;
color: #FFFFFF;
font-size: 16px;
}
.odd {
color: #000000;
background-color:#CCCCCC;
}
.even {
color: #000000;
background-color:#EEEEEE;
}

textualmente la pagina web dice
odd assigned to the tr tag of all odd numbered data rows
even assigned to the tr tag of all even numbered data rows
sorted assigned to the th tag of the sorted column
order1 assigned to the th tag of the sorted column if sort order is ascending
order2 assigned to the th tag of the sorted column if sort order is descending
sortable assigned to the th tag of a sortable column

y bueno tambien estan los decorators, pero esos si que nunca los he utilizado