Home >Web Front-end >HTML Tutorial >Hyperlinks about td in table_html/css_WEB-ITnose

Hyperlinks about td in table_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:11:201394browse

f5d188ed2c074f8b944552db028f98a1
a34de1251f0d9fe1e645927f19a896e8
b6c5a531a458a2e790c1fd6421739d1c3499910bf9dac5ae3c52d5ede7383485a1f02c36ba31691bcfe87b2722de723b5db79b134e9f6b82c0b36e0489ee08edb90dd5946f0946207856a8a37f441edf
b6c5a531a458a2e790c1fd6421739d1cfe6a2f80d4124875a12e5f756260fab0a name5db79b134e9f6b82c0b36e0489ee08edb90dd5946f0946207856a8a37f441edf
fd273fcf5bcad3dfdad3c41bd81ad3e5
f16b1740fad44fb09bfe928bcc527e08

Now the second column can only be clicked on the text Jumped.
But the name will not occupy the entire column. I need to click on any blank space in the second column to jump.
How to achieve it?


Reply to discussion (solution)

<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>


Try it

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn