如何给 Table/tr/td 添加超链接?
<tr onclick="location.href={{url('路径')}};"> </tr>
<td onclick="location.href={{url('路径')}};"> </td>
//在新窗口中打开
<tr onclick="window.open('http://www.baidu.com');"> </tr>
<td onclick="window.open('http://www.baidu.com');"> </td>
本作品采用《CC 协议》,转载必须注明作者和本文链接
关于 LearnKu
推荐文章: