je veux enlever du code cellpadding="0" cellspacing="0 des tableau c'est pour ça que j'ai rajouter dans la class tableau :
border-collapse: collapse;
et la il ne me souligne plus les td en entier mais que le bas ...
est ce normal ?????

Merci a tous !

voila le code :
Code : Tout sélectionner
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Test</title>
<script language="javascript">
function highlightRow(row, onFlag) {
var tdNodes = row.childNodes;
for (var i=0; i<tdNodes.length; i++) {
var tdNode = tdNodes[i];
if (tdNode.nodeType != 3) {
if (onFlag) {
tdNode.className = tdNode.className + "over";
} else {
var overPos = tdNode.className.indexOf("over");
tdNode.className = tdNode.className.substring(0,tdNode.className.length-overPos);
}
}
}
}
</script>
<style>
.tableaux {
background: #eff3f9;
border: 1px solid #2e62aa;
border-collapse: collapse;
}
.row1 {
background: #eff3f9;
border-top: 1px solid #eff3f9;
border-bottom: 1px solid #eff3f9;
}
.row2 {
background: #e0e8f2;
border-top: 1px solid #e0e8f2;
border-bottom: 1px solid #e0e8f2;
}
.row3 {
background: #cedcec;
border-top: 1px solid #cedcec;
border-bottom: 1px solid #cedcec;
}
/****************** Row highlighting ********************/
.row1over, .row2over, .row3over {
background-color: #e0e8f2;
border-top: 1px solid #2e62aa;
border-bottom: 1px solid #2e62aa;
}</style>
</head>
<body>
<table class="tableaux" width="515" >
<tr onmouseover="highlightRow(this, true);" onmouseout="highlightRow(this, false);">
<td class="row1"><p>test1</p></td>
<td class="row2"> </td>
<td class="row3"> </td>
</tr>
<tr onmouseover="highlightRow(this, true);" onmouseout="highlightRow(this, false);">
<td class="row1"><p>test2</p></td>
<td class="row2"> </td>
<td class="row3"> </td>
</tr>
<tr onmouseover="highlightRow(this, true);" onmouseout="highlightRow(this, false);">
<td class="row1"><p>test3</p></td>
<td class="row2"> </td>
<td class="row3"> </td>
</tr>
</table>
</body>
</html>