Skip to content

Commit 82bfac2

Browse files
authored
feat: update (#1151)
1 parent 1ffb99f commit 82bfac2

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -270,19 +270,6 @@ pseudo
270270
271271
例如,如果有 `paddingLeft/paddingTop` 属性,那么对于 `getComputedStyle(elem).padding`,我们会得到什么?什么都没有,或者是从已知的 padding 中“生成”的值?这里没有标准的规则。
272272
273-
还有其他不一致的地方。例如,在下面这个例子中,某些浏览器(Chrome)会显示 `10px`,而某些浏览器(Firefox)则没有:
274-
275-
```html run
276-
<style>
277-
body {
278-
margin: 10px;
279-
}
280-
</style>
281-
<script>
282-
let style = getComputedStyle(document.body);
283-
alert(style.margin); // 在 Firefox 中是空字符串
284-
</script>
285-
```
286273
````
287274

288275
```smart header="应用于 `:visited` 链接的样式被隐藏了!"

0 commit comments

Comments
 (0)