<section>

创建于 2024-12-03 / 21
字体: [默认] [大] [更大]

Section 对象

Section 对象代表 HTML <section> 元素。

注释: Internet Explorer 8 以及更早的版本不支持 <section> 元素。

访问 Section 对象

您可使用 getElementById() 来访问 <section> 元素:

实例

var x = document.getElementById("mySection"); 亲自试一试 »

创建 Section 对象

您可使用 document.createElement() 方法来创建 <section> 元素:

实例

var x = document.createElement("SECTION"); 亲自试一试 »

标准属性和事件

Section 对象支持标准 属性事件


相关页面

HTML 参考手册: HTML <section> 标签



0 人点赞过