gpt4 book ai didi

html - 表格行的 IE 间距问题

转载 作者:太空宇宙 更新时间:2023-11-04 15:53:03 26 4
gpt4 key购买 nike

我正在尝试在表格中的行底部添加间距,它在 Chrome 中运行良好。但是在 IE 8.0 中没有显示间距

所用方法的任何替代方法?

CSS

tr.spaceUnder > td
{
padding-bottom: 7px;
}

HTML

    <table width="105%">

<tr class="spaceUnder">
<td><p>Friday, June 8th<br>
<a href="https://www.facebook.com/events/357722824277712/" target="_blank" onMouseOver="MM_swapImage('band','','images/awatson.jpg',1)" onMouseOut="MM_swapImgRestore()">Aaron Watson</a></p>
</td>
<td valign="bottom"><a href="http://www.ticketfly.com/event/122695/"><img src="http://www.bigtexassaloon.com/images/tix.png" border="0"></a>
</td>
</tr>

<tr class="spaceUnder">
<td>
<p>Thursday, June 14th<br>
<a href="https://www.facebook.com/events/180258595433140/" target="_blank" onMouseOver="MM_swapImage('band','','images/acoustic.jpg',1)" onMouseOut="MM_swapImgRestore()">Five Man Jam</a><br />
&nbsp;&nbsp;Joe Blake<br />&nbsp;&nbsp;Neil Austin Imber<br />&nbsp;&nbsp;Eric Middleton<br />&nbsp;&nbsp;Stephen Chadwick<br />&nbsp;&nbsp;Ryan Lee Evans</p>
</td>
</tr>
</table>

最佳答案

您是否在 html 中声明了文档类型?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

关于html - 表格行的 IE 间距问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10925085/

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