我无法让此代码在 WebKit 浏览器(chrome/safari)中正确显示。它在 IE6、IE7 和 FireFox 中看起来不错。
<table width="100%">
<tr>
<td rowspan="2" style="vertical-align:middle;">
<a href="http://http://{$smarty.const.DOMAIN}/company/a_cherry_on_top/line/gift_cards/?v=s2"><img src="/i/thumbnails/acotgc25sm.gif" alt="Gift Certificate"/></a>
</td>
<td style="vertical-align:middle;">
<a href="http://{$smarty.const.DOMAIN}/article?a=2044" target="_top">Wishlist</a>
</td>
<td style="vertical-align:middle;">
<a href="http://{$smarty.const.DOMAIN}/article?a=2125" target="_top">Link to Us</a>
</td>
<td style="vertical-align:middle;">
<a href="http://www.shareasale.com/shareasale.cfm?merchantID=8362" target="_blank">Affiliate Program</a>
</td>
<td style="vertical-align:middle;">
<a href="http://{$smarty.const.DOMAIN}/article?a=1521" target="_top">Privacy</a>
</td>
<td style="vertical-align:middle;">
<a href="http://{$smarty.const.DOMAIN}/article?a=1395" target="_top">Guarantee</a>
</td>
<td rowspan="2" style="width:160px;">
<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=en&w=160&h=60&title=&border=&output=js"></script>
</td>
</tr>
<tr>
<td style="vertical-align:middle;">
<a href="http://{$smarty.const.DOMAIN}/article?a=3069" target="_top">About Us</a>
</td>
<td style="vertical-align:middle;">
<a href="http://{$smarty.const.DOMAIN}/article?a=1467" target="_top">Shipping</a>
</td>
<td style="vertical-align:middle;">
<a href="http://{$smarty.const.DOMAIN}/article?a=12342383" target="_top">Why Buy From Us</a>
</td>
<td style="vertical-align:middle;">
<a href="http://{$smarty.const.DOMAIN}/article?a=1397" target="_top">Contact Us</a>
</td>
<td style="vertical-align:middle;">
<a href="http://{$smarty.const.DOMAIN}/help" target="_top">Help</a>
</td>
</tr>
</table>
问题是 WebKit 使顶行非常小,而底行填充了其余空间,而不是每行具有相等的高度。
任何人都知道如何让它在基于 WebKit 的浏览器中显示我想要的样子吗?