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