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

标签 html css wordpress

我试图在一行中对齐页脚小部件中的三个小 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/

相关文章:

css - 设置 CSS 文件的过期时间

css - Twitter Bootstrap 和移动导航栏

mysql - Wordpress 无法连接到 mysql 服务器

php - 如何根据正文 ID 更改链接

javascript - 如果在事件中调用 .post(),jquery .submit() 与 jquery .click() 有什么优势?

jquery - 在html中制作可移动元素和菜单项平滑滑动

jquery - 菜单更改位置或与事件菜单重叠

php - lessphp 加载文件 LESS 时出错

html - CSS 左边使用 calc(percent +/- pixel) odd 结果

wordpress - 敏捷 uploader Wordpress 实现