在表格中建立图像链接 [英] Making an image link in a table

查看:62
本文介绍了在表格中建立图像链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何建立与该图像的链接吗? 我必须将背景"更改为"img src"吗? 还是我必须更改<a href>?

Does somebody know how to make a link form this image? Do I have to change "background" to "img src"? Or do I have to change the <a href>?

<a href="index.html"><td  height="117" colspan="4" background="afbeeldingen/klein-2kolom_04.gif"></a>&nbsp;</td>

推荐答案

背景是背景.内容就是内容.链接需要告知用户他们指向的位置,因此需要内容.表格行不能将锚作为子级.表单元格不能具有锚作为父级. background属性已过时.

Backgrounds are backgrounds. Content is content. Links need to inform users about where they point and so require content. Table rows cannot have anchors as children. Table cells cannot have anchors as parents. The background attribute is obsolete.

<td>
    <a href="index.html">
        <img src="afbeeldingen/klein-2kolom_04.gif" alt="DON'T FORGET THIS">
    </a>
</td>

这篇关于在表格中建立图像链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆