gpt4 book ai didi

html - 修复页脚表格/div 问题

转载 作者:太空宇宙 更新时间:2023-11-03 23:32:30 27 4
gpt4 key购买 nike

我试图在一行中对齐页脚小部件中的三个小 Logo (使用 Wordpress,主题是 Press coders)我创建了一个我想要的模型:

Image

然而,一切都在扭曲,令人难以置信!

你可以在我的页脚中看到困惑:

www.oxfordlifestylecentre.co.uk

我试过同时使用 div 和表格,我最新的表格如下所示:

<table align="right">
<tr>
<td>
<a href="/gym/">
<img src="http://www.oxfordlifestylecentre.co.uk/wp-content/uploads/2014/07/health-and-fitness-1.jpg" alt="Health and Fitness" />
</td>
<td>
<a href="/hair-and-beauty/>
<img src="http://www.oxfordlifestylecentre.co.uk/wp- content/uploads/2014/07/hair-and-beauty-1.jpg" alt="Hair and Beauty" />
</td>
</tr>
</table>

最佳答案

你的 html 语法是错误的。您缺少闭合 anchor 和引号。试试这个。

<table align="right">
<tr>
<td>
<a href="/gym/">
<img src="http://www.oxfordlifestylecentre.co.uk/wp-content/uploads/2014/07/health-and-fitness-1.jpg" alt="Health and Fitness" /></a>
</td>
<td>
<a href="/hair-and-beauty/">
<img src="http://www.oxfordlifestylecentre.co.uk/wp- content/uploads/2014/07/hair-and-beauty-1.jpg" alt="Hair and Beauty" /></a>
</td>
</tr>
</table>

关于html - 修复页脚表格/div 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24936305/

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