a name |
<td onclick="window.location.href='url';"><a href="">一个名字</a></td>
<!DOCTYPE HTML><html> <head> <meta charset="gb2312" /> <title></title> <style> td { border:1px solid red; font-size:12px; } .test a{ display:inline-block; width:100%; height:100%; } </style> </head> <body> <table> <tr> <td><a><img></a></td> <td class="test" width="100" height="30"><a href="">一个名字</a></td> </tr> </table> </body></html>
As a 1L person, I understand that this method is also possible.
2L doesn’t understand what it means, can you explain it?
Just make the height and width of a consistent with the width and height of the parent td, then click on the blank space of td (it seems to be the blank space of td, but it is actually part of a) to trigger a