Skip to content

Commit 6c83a68

Browse files
authored
minor improve of translation
1 parent bff2caf commit 6c83a68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

2-ui/1-document/08-styles-and-classes/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ elem.style.top = top; // 例如 '456px'
8484

8585
## 元素样式
8686

87-
`elem.style` 属性是一个对象,它对应于 `"style"` 特性(attribute)中所写的内容。`elem.style.width="100px"` 的效果等价于我们在 `style` 中有一个 `width:100px` 字符串。
87+
`elem.style` 属性是一个对象,它对应于 `"style"` 特性(attribute)中所写的内容。`elem.style.width="100px"` 的效果等价于我们在 `style` 特性中有一个 `width:100px` 字符串。
8888

8989
对于多词(multi-word)属性,使用驼峰式 camelCase:
9090

@@ -186,7 +186,7 @@ setTimeout(() => document.body.style.display = "", 1000); // 恢复正常
186186
187187
例如,我们想知道元素的 size,margins 和 color。应该怎么获取?
188188
189-
**`style` 属性仅对 `"style"` 属性值进行操作,而没有任何 CSS 级联(cascade)。**
189+
**`style` 属性仅对 `"style"` 特性(attribute)值起作用,而没有任何 CSS 级联(cascade)。**
190190
191191
因此我们无法使用 `elem.style` 读取来自 CSS 类的任何内容。
192192

0 commit comments

Comments
 (0)