我正在尝试找出正确的方式来显示图片的标题,像这样的东西是有意义的jfiddle link,但我也在考虑图形和图形标题,这似乎更好地服务于目的,我更喜欢的是:
<figure>
<img src="/animage.jpg" alt="an image">
<figcaption>This is the caption</figcaption>
</figure>
我正在构建一个博客新闻帖子的模板,所以无论哪种方式都很重要,或者我缺少的figcaption是否有正确的用法?
发布于 2013-05-17 18:11:00
我将使用<figure>
方法,因为它比div / span示例具有更多的语义。
<figure class="image">
<img src="http://[..]" />
<figcaption>I am an image caption</figcaption>
</figure>
http://jsfiddle.net/duncan/KYTWS/
相关,尽管是关于块引用,http://alistapart.com/blog/post/more-thoughts-about-blockquotes-than-are-strictly-required
发布于 2018-08-07 20:07:32
我还建议使用元素来显示适当的图片标题。单击here观看演示。
有关为图像添加标题的更多选项,请访问http://jkorpela.fi/www/captions.html
https://stackoverflow.com/questions/16605335
复制相似问题