A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/zh-TW/docs/Web/HTML/Reference/Elements/figcaption below:

<figcaption>ï¼šåœ–ä¾‹èªªæ˜Žå…ƒç´ - HTML:超文本標記語言 | MDN

<figcaption>:圖例說明元素

Baseline Widely available

<figcaption> HTML 元素代表其父級 <figure> 元素餘下內容的標題或圖例,提供 <figure> 一個無障礙描述。

嘗試一下
<figure>
  <img
    src="/shared-assets/images/examples/elephant.jpg"
    alt="Elephant at sunset" />
  <figcaption>An elephant at sunset</figcaption>
</figure>
figure {
  border: thin #c0c0c0 solid;
  display: flex;
  flex-flow: column;
  padding: 5px;
  max-width: 220px;
  margin: auto;
}

img {
  max-width: 220px;
  max-height: 150px;
}

figcaption {
  background-color: #222;
  color: #fff;
  font: italic smaller sans-serif;
  padding: 3px;
  text-align: center;
}
屬性

該元素僅包括全域屬性。

範例

請參見 <figure> 頁面上 <figcaption> 的範例。

技術摘要 規範 瀏覽器相容性 參見

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4