Skip to content

Commit 160db84

Browse files
committed
fix format and a typo
1 parent 1e8b861 commit 160db84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

8-web-components/3-shadow-dom/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Shadow DOM 被非常明显地和主文档分开:
106106
```html run untrusted height=40
107107
<style>
108108
*!*
109-
/* 文档样式对 #elem (1) 内的 shadow tree 无作用 */
109+
/* 文档样式对 #elem 内的 shadow tree 无作用 (1) */
110110
*/!*
111111
p { color: red; }
112112
</style>
@@ -154,4 +154,4 @@ Shadow DOM 元素:
154154
- 对主文档的 JavaScript 选择器隐身,比如 `querySelector`
155155
- 只使用 shadow tree 内部的样式,不使用主文档的样式。
156156

157-
Shadow DOM,如果存在的话,会被侯览器渲染而不是所谓的 「light DOM」(普通子元素)。在 <info:slots-composition> 章节中我们将会看到如何组织它们。
157+
Shadow DOM,如果存在的话,会被浏览器渲染而不是所谓的 「light DOM」(普通子元素)。在 <info:slots-composition> 章节中我们将会看到如何组织它们。

0 commit comments

Comments
 (0)