Вопрос по html – как сделать ячейку таблицы гиперссылкой

20

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

<td href='http://www.m-w.com/dictionary/' style="cursor:pointer">
Error: User Rate Limit Exceededstackoverflow.com/questions/3337914/how-to-make-a-td-a-link Usman
Error: User Rate Limit Exceededstackoverflow.com/a/3966257/1320588Error: User Rate Limit Exceeded sleepwalker
Error: User Rate Limit Exceeded Andrew Grimm

Ваш Ответ

8   ответов
12

<td onclick="location.href='yourpage.html'">go to yourpage</td>

Error: User Rate Limit Exceeded<td>Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit ExceededreallyError: User Rate Limit ExceededandError: User Rate Limit Exceeded
1

<td>
   <a href="/yourURL"></a>
   <div class="item-container">
      <img class="icon" src="/iconURL" />
      <p class="name">
         SomeText
      </p>
   </div>
</td>

td {
  padding: 1%;
  vertical-align: bottom;
  position:relative;

     a {
        height: 100%;
        display: block;
        position: absolute;
        top:0;
        bottom:0;
        right:0;
        left:0;
       }

     .item-container {
         /*...*/
     }
}

vertical-align

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
7

<td style="cursor:pointer" onclick="location.href='mylink.html'">link</td>

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceededstackoverflow.com/questions/2061844/…
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
17

<td><a href="..." style="display:block;">&nbsp;</a></td>
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceededgoogle.comError: User Rate Limit Exceeded vaichidrewar
Error: User Rate Limit Exceeded
1

Problems:

(User: Kamal)Error: User Rate Limit Exceeded

(User: Christ)Error: User Rate Limit Exceeded

My Suggestion to complete answer of (User: Christ):

Error: User Rate Limit Exceeded

<td style="cursor:pointer" onclick="location.href='mylink.html'"><a class="LN1 LN2 LN3 LN4 LN5" href="mylink.html" target="_top">link</a></td>

Error: User Rate Limit Exceeded

a.LN1 {
  font-style:normal;
  font-weight:bold;
  font-size:1.0em;
}

a.LN2:link {
  color:#A4DCF5;
  text-decoration:none;
}

a.LN3:visited {
  color:#A4DCF5;
  text-decoration:none;
}

a.LN4:hover {
  color:#A4DCF5;
  text-decoration:none;
}

a.LN5:active {
  color:#A4DCF5;
  text-decoration:none;
}
31

<table width="200" border="1" class="table">
    <tr>
        <td><a href="#">&nbsp;</a></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
</table>

.table a
{
    display:block;
    text-decoration:none;
}

Error: User Rate Limit Exceeded
1

<a><td>

<td onclick="location.href='yourpage.html'"><a href="yourpage.html">Link</a></td>
Error: User Rate Limit Exceeded
0

<tr>
<td onClick="location.href='http://www.stackoverflow.com';">
Cell content goes here
</td>
</tr>
Error: User Rate Limit Exceeded

Похожие вопросы