gpt4 book ai didi

html - 当它有 2 个 href 元素时,为什么在表格单元格中有额外的间距

转载 作者:太空狗 更新时间:2023-10-29 16:08:55 25 4
gpt4 key购买 nike

图片胜过千言万语。请注意最后一行与其余行之间的空格。

enter image description here

这是代码。

<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 标签中,间距就会消失。这是怎么回事?

最佳答案

现在您缺少关闭 tdtable 标记。他们可能是问题所在。

它对我来说很好用结束标签:

示例:http://jsfiddle.net/bmNRq/

关于html - 当它有 2 个 href 元素时,为什么在表格单元格中有额外的间距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7744503/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com