图片胜过千言万语。请注意最后一行与其余行之间的空格。
这是代码。
<html>
<head></head>
<style type="text/css">
td a {
text-decoration: none;
color: black;
font-size:11px;
font-family: Arial,
}
</style>
<body>
<table>
<tr>
<td width="120px"><a href="#" target="__blank">Now is the time for all good men to come to the aide of their country said the quick brown fox to the lazy cow.</a> <a href="#" target="__blank">Moo</a></td>
</tr>
</body>
</html>
如果我取出第二个 a 标签并将 Moo 文本包含在第一个 a 标签中,间距就会消失。这是怎么回事?
最佳答案
关于html - 当它有 2 个 href 元素时,为什么在表格单元格中有额外的间距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7744503/