File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,11 +145,11 @@ if (scripts.length !== 0 ) {
145145
146146** (6)document.styleSheets**
147147
148- ` document.styleSheets ` 属性返回文档内嵌或引入的样式表集合 ,详细介绍请看《CSS 对象模型 》一章。
148+ ` document.styleSheets ` 属性返回网页内嵌或引入的 CSS 样式表集合 ,详细介绍请看《CSS 操作 》一章。
149149
150150** (7)小结**
151151
152- 除了` document.styleSheets ` ,以上的集合属性返回的都是 ` HTMLCollection ` 实例。
152+ 除了` document.styleSheets ` 属性,以上的其他集合属性返回的都是 ` HTMLCollection ` 实例。 ` document.styleSheets ` 属性返回的是 ` StyleSheetList ` 实例。
153153
154154``` javascript
155155document .links instanceof HTMLCollection // true
@@ -159,7 +159,7 @@ document.embeds instanceof HTMLCollection // true
159159document .scripts instanceof HTMLCollection // true
160160```
161161
162- ` HTMLCollection ` 实例是类似数组的对象,所以这些属性都有 ` length ` 属性,都可以使用方括号运算符引用成员。如果成员有` id ` 或` name ` 属性,还可以用这两个属性的值,在` HTMLCollection ` 实例上引用到这个成员。
162+ ` HTMLCollection ` 实例是类似数组的对象,所以上面这些属性都有 ` length ` 属性,都可以使用方括号运算符引用成员。如果成员有` id ` 或` name ` 属性,还可以用这两个属性的值,在` HTMLCollection ` 实例上引用到这个成员。
163163
164164``` javascript
165165// HTML 代码如下
You can’t perform that action at this time.
0 commit comments