20

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

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 Exceeded<a href="http://stackoverflow.com/questions/3337914/how-to-make-a-td-a-link" title="how to make a td a link">stackoverflow.com/questions/3337914/how-to-make-a-td-a-link</a>

Apr 09, 2012, 7:37 AMот

Error: User Rate Limit Exceeded<a href="http://stackoverflow.com/a/3966257/1320588">stackoverflow.com/a/3966257/1320588</a>Error: User Rate Limit Exceeded

Apr 09, 2012, 7:38 AMот

Error: User Rate Limit Exceeded

Sep 30, 2016, 4:59 AMот

8ответов

1

Error: User Rate Limit Exceeded

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

Error: User Rate Limit Exceeded

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 {
         /*...*/
     }
}

Error: User Rate Limit Exceededvertical-alignError: User Rate Limit Exceeded

7

Error: User Rate Limit Exceeded

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

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;
}
1

Error: User Rate Limit Exceeded<a>Error: User Rate Limit Exceeded<td>Error: User Rate Limit Exceeded

<td onclick="location.href='yourpage.html'"><a href="yourpage.html">Link</a></td>
12

Error: User Rate Limit Exceeded

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

0

Error: User Rate Limit Exceeded

<tr>
<td onClick="location.href='http://www.stackoverflow.com';">
Cell content goes here
</td>
</tr>
17

Error: User Rate Limit Exceeded

<td><a href="..." style="display:block;">&nbsp;</a></td>
31

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

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

Error: User Rate Limit Exceeded

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

Error: User Rate Limit Exceeded

RelatedQuestions