<td onmouseover="this.style.background='red';this.styl e.cursor='pointer'"
onmouseout="this.style.background='white';">
In questa maniera funziona ma se provo a rendere cliccabile tutta la riga nn colora le celle. Ho visto che se tolgo lo style dato dal css alla mia tabella la cosa funziona anche con tr. Cosa devo modificare nel mio style x far andare entrambe le cose?
table.sample th {
border-width: 1px 1px 1px 1px;
padding: 1px 1px 1px 1px;
border-style: dashed dashed dashed dashed;
border-color: gray gray gray gray;
background-color: rgb(250, 240, 230);
-moz-border-radius: 0px 0px 0px 0px;
}
table.sample td {
border-width: 1px 1px 1px 1px;
padding: 1px 1px 1px 1px;
border-style: dashed dashed dashed dashed;
border-color: gray gray gray gray;
background-color: rgb(250, 240, 230);
-moz-border-radius: 0px 0px 0px 0px;
}
table.sample tr {
border-width: 1px 1px 1px 1px;
padding: 1px 1px 1px 1px;
border-style: dashed dashed dashed dashed;
border-color: gray gray gray gray;
background-color: rgb(250, 240, 230);
-moz-border-radius: 0px 0px 0px 0px;
}


Rispondi quotando