Tema: TR con HREF
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/10/2011, 16:30
Avatar de morfasto
morfasto
 
Fecha de Ingreso: julio-2011
Ubicación: Lima
Mensajes: 291
Antigüedad: 12 años, 9 meses
Puntos: 8
TR con HREF

Hola, que tal?

Estoy tratando de hacer que cada fila de mi tabla sea un link, es decir, esta es mi tabla:

Codigo:
Código HTML:
Ver original
  1. <table border='1'>
  2.     <tr>
  3.         <th>Campo1</th>
  4.         <th>Campo2</th>
  5.         <th>Campo3</th>
  6.     </tr>
  7.     <tr>
  8.         <td>Dato1</td>
  9.         <td>Caso1</td>
  10.         <td>Numero1</td>
  11.     </tr>
  12.     <tr>
  13.         <td>Dato2</td>
  14.         <td>Caso2</td>
  15.         <td>Numero2</td>
  16.     </tr>

Y quiero que cada fila sea un link:
Código HTML:
Ver original
  1. <table border='1'>
  2.     <a href="link1.html">
  3.         <tr>
  4.             <th>Campo1</th>
  5.             <th>Campo2</th>
  6.             <th>Campo3</th>
  7.         </tr>
  8.     </a>
  9.     <a href="link2.html">
  10.         <tr>
  11.             <td>Dato1</td>
  12.             <td>Caso1</td>
  13.             <td>Numero1</td>
  14.         </tr>
  15.     </a>
  16.     <a href="link3.html">
  17.         <tr>
  18.             <td>Dato2</td>
  19.             <td>Caso2</td>
  20.             <td>Numero2</td>
  21.         </tr>
  22.     </a>

Pero por alguna extraña razon no funciona, alguien sabe porque y como solucionarlo?

Muchas gracias!