使用表格整行作为可点击跳转

 

HTML

<tbody>
    <tr class="tr-link" onclick="window.document.location = 'http:\\www.cnblog.com\zyx1314'">
        <td>1</td>
        <td>forever</td>
        <td>enjoy</td>
    </tr>
</tbody>

 

CSS

.tr-link:hover { cursor: pointer; }

 

posted @ 2016-09-17 00:34  ForeverEnjoy  阅读(1581)  评论(0编辑  收藏  举报