gpt4 book ai didi

html - 图形标签是否适合 map ?

转载 作者:行者123 更新时间:2023-11-28 04:39:32 24 4
gpt4 key购买 nike

figure 元素用于 map (例如谷歌地图)在语义上是否正确?

在我的例子中,它可以放在其他地方而不影响文档流。我会使用 figcaption 来存储 map 上显示的地点的地址。但我仍然不确定这是否适合这个用例......

这是 w3c 描述:

The figure element represents some flow content, optionally with a caption, that is self-contained and is typically referenced as a single unit from the main flow of the document. The figure element can be used to annotate illustrations, diagrams, photos, code listings, etc., that are referenced in the main content of the document, but that could, without affecting the flow of the document, be moved away from that primary content — e.g., to the side of the page, to dedicated pages, or to an appendix.

http://dev.w3.org/html5/spec/the-figure-element.html#the-figure-element

最佳答案

我认为这是对 figure 元素的一个很好的使用,前提是 map 本身不是页面的主要内容。

关于html - 图形标签是否适合 map ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10885042/

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