2010-09-26 55 views

回答

3

标题属性主要用于提供有关该图像或链接的工具提示。通常是目标的标题。

在图像中,使用figcaption应该足以克服title属性,因此您有用于描述资源的特定标记。无论如何,考虑到总是使用ALT属性,即使是无花果。

这是因为您可以在图中有多个图像。

例如,使用3张图像来模拟进程的进度。

<figure> 
<img src="img1.png" alt="The start of process. Subject is raw." /> 
<img src="img2.png" alt="Middle process. Subject is changing." /> 
<img src="img3.png" alt="End of process. Subject is completely transformed." /> 
<figcaption>Process steps, from left to right: raw subject, changing and changed subject.</figcaption> 
</figure> 
相关问题