Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 95e72ae

Browse files
committed
docs(dom/document): edit document.stylesheets
1 parent e90b8a1 commit 95e72ae

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎docs/dom/document.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
155155
document.links instanceof HTMLCollection // true
@@ -159,7 +159,7 @@ document.embeds instanceof HTMLCollection // true
159159
document.scripts instanceof HTMLCollection // true
160160
```
161161

162-
`HTMLCollection`实例是类似数组的对象,所以这些属性都有`length`属性,都可以使用方括号运算符引用成员。如果成员有`id``name`属性,还可以用这两个属性的值,在`HTMLCollection`实例上引用到这个成员。
162+
`HTMLCollection`实例是类似数组的对象,所以上面这些属性都有`length`属性,都可以使用方括号运算符引用成员。如果成员有`id``name`属性,还可以用这两个属性的值,在`HTMLCollection`实例上引用到这个成员。
163163

164164
```javascript
165165
// HTML 代码如下

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /