gpt4 book ai didi

html - 表格宽度不起作用,向左移动太远

转载 作者:行者123 更新时间:2023-11-28 12:13:25 25 4
gpt4 key购买 nike

我制作了这个时事通讯,但出于某种原因,标题向右移动了。我不知道是什么原因造成的。哦 http://jsfiddle.net/3hVFp/

当我只做顶部时:

<table cellspacing="0" cellpadding="0" width="810px" style="border:1px solid white;border-collapse:collapse">
<tr>
<td VALIGN=TOP style="width:25%; border-bottom: 1px solid #000000;">Nieuwsbrief #6</td>
<td style="width:50%; background: #DBDBDB;"><img style="margin: 0; border: 0; padding: 0; display: block;" src="http://pietrow.net/newsletter/images/lad_wide.png"></img></td>
<td align="right" style="width:25%; vertical-align: top; border-bottom: 1px solid #000000;" >Datum: 13-10-13</td>
</tr>
<tr style="background: #DBDBDB; border: 1px solid #000000; border-top: 0px; border-left: 1px solid #000000;">
<td ><center><a href="http://home.strw.leidenuniv.nl/~kaiser/">Website</a></center></td>
<td ><center><a href="https://www.facebook.com/LADKaiser">Facebook</a></center></td>
<td ><center><a href="mailto:kaiser@strw.leidenuniv.nl">Contact</a></center></td>
</tr>

虽然有效。 http://jsfiddle.net/3hVFp/2/

有人知道哪里出了问题吗?

最佳答案

从 td 元素中移除带有百分比的 width 属性并替换为 colspan第一部分

<tr style="background: #DBDBDB; border: 1px solid #000000; border-top: 0px; border-bottom: 0px;">
<td colspan="1"><center><a href="http://home.strw.leidenuniv.nl/~kaiser/">Website</a></center>

</td>
<td colspan="1"><center><a href="https://www.facebook.com/LADKaiser">Facebook</a></center></td>
<td colspan="1"><center><a href="mailto:kaiser@strw.leidenuniv.nl">Contact</a></center>


</td>
</tr>

第二部分

<tr style="background: #DBDBDB; border: 1px solid #000000;" width="810px">
<td>

<b>Board L.A.D. 'F. Kaiser'</b><br>
<center><br>
Alex Pietrow<br>
Josha van Houdt<br>
Emanuele Di Gloria<br>
Pawel Biernacki<br>
Guus de Wit<br>
Queeny van der Spek<br>
</center>
</td>

<td colspan="2"><center>

L.A.D. 'F. Kaiser'<br>
Niels Bohrweg 2<br>
2333 CA Leiden<br>
<a href="mailto:kaiser@strw.leidenuniv.nl">kaiser@strw.leidenuniv.nl</a>
</center>



</td>

</tr>

关于html - 表格宽度不起作用,向左移动太远,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19349248/

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