aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/html/element/footer
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/html/element/footer')
-rw-r--r--files/zh-cn/web/html/element/footer/index.html84
1 files changed, 84 insertions, 0 deletions
diff --git a/files/zh-cn/web/html/element/footer/index.html b/files/zh-cn/web/html/element/footer/index.html
new file mode 100644
index 0000000000..537dd2ed03
--- /dev/null
+++ b/files/zh-cn/web/html/element/footer/index.html
@@ -0,0 +1,84 @@
+---
+title: <footer>
+slug: Web/HTML/Element/footer
+tags:
+ - Element
+ - HTML
+ - HTML sections
+translation_of: Web/HTML/Element/footer
+---
+<p>{{HTMLRef}}</p>
+
+<p><strong>HTML &lt;footer&gt; 元素</strong>表示最近一个<a href="/en-US/docs/Web/Guide/HTML/Sections_and_Outlines_of_an_HTML5_document#Defining_Sections_in_HTML5">章节内容</a>或者<a href="/en-US/docs/Web/Guide/HTML/Sections_and_Outlines_of_an_HTML5_document#Sectioning_root" title="Sections and Outlines of an HTML5 document#Sectioning root">根节点</a>(sectioning root )元素的页脚。一个页脚通常包含该章节作者、版权数据或者与文档相关的链接等信息。</p>
+
+<p> </p>
+
+<p>{{EmbedInteractiveExample("pages/tabbed/footer.html", "tabbed-standard")}}</p>
+
+<p> </p>
+
+<ul class="htmlelt">
+ <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">内容分类</a></dfn> <a href="/zh-CN/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">流内容</a>, 可触内容。</li>
+ <li><dfn>允许的内容</dfn> <a href="/zh-CN/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">流内容</a>,但是不能包含&lt;footer&gt;或者{{HTMLElement("header")}}。</li>
+ <li><dfn>标签省略</dfn> {{no_tag_omission}}</li>
+ <li><dfn>允许的父元素</dfn>任何接收<a href="/zh-CN/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">流内容</a>的元素。注意&lt;footer&gt;元素必须不能是 {{HTMLElement("address")}}, {{HTMLElement("header")}} 或者另一个<code>&lt;footer&gt;</code> 元素的后代元素。</li>
+ <li><dfn>DOM 接口</dfn> {{domxref("HTMLElement")}}</li>
+</ul>
+
+<h2 id="属性">属性</h2>
+
+<p>该元素仅包含 <a href="/en-US/docs/HTML/Global_attributes">全局属性</a>。</p>
+
+<h2 id="使用说明">使用说明</h2>
+
+<ul>
+ <li>&lt;footer&gt;元素内的作者信息应包含在{{HTMLElement("address")}} 元素中。</li>
+ <li>&lt;footer&gt;元素不是章节内容,因此在<a href="/en-US/docs/Sections_and_Outlines_of_an_HTML5_document" title="Sections and Outlines of an HTML5 document">outline</a>中不能包含新的章节。</li>
+</ul>
+
+<h2 id="例子">例子</h2>
+
+<pre class="brush: html">&lt;footer&gt;
+ Some copyright info or perhaps some author info for an &amp;lt;article&amp;gt;?
+&lt;/footer&gt;
+</pre>
+
+<h2 id="Specifications" name="Specifications">规范</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">规范</th>
+ <th scope="col">状态</th>
+ <th scope="col">备注</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', 'sections.html#the-footer-element', '&lt;footer&gt;')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML5 W3C', 'sections.html#the-footer-element', '&lt;footer&gt;')}}</td>
+ <td>{{Spec2('HTML5 W3C')}}</td>
+ <td> </td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+<p> </p>
+
+<p>{{Compat("html.elements.footer")}}</p>
+
+<p> </p>
+
+<h2 id="参见">参见</h2>
+
+<ul>
+ <li>其他section相关的元素: {{HTMLElement("body")}}, {{HTMLElement("nav")}}, {{HTMLElement("article")}}, {{HTMLElement("aside")}}, {{HTMLElement("h1")}}, {{HTMLElement("h2")}}, {{HTMLElement("h3")}}, {{HTMLElement("h4")}}, {{HTMLElement("h5")}}, {{HTMLElement("h6")}}, {{HTMLElement("hgroup")}}, {{HTMLElement("header")}}, {{HTMLElement("section")}}, {{HTMLElement("address")}};</li>
+ <li class="last"><a href="/en-US/docs/Sections_and_Outlines_of_an_HTML5_document" title="Sections and Outlines of an HTML5 document">Sections and outlines of an HTML5 document</a>.</li>
+ <li><a href="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Contentinfo_role">ARIA: Contentinfo role</a></li>
+</ul>