Fixed a typo
This commit is contained in:
parent
7964b11b8f
commit
d74b37c803
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ But there's a pitfall. If we have a script after the style, then that script mus
|
||||||
```html run
|
```html run
|
||||||
<link type="text/css" rel="stylesheet" href="style.css">
|
<link type="text/css" rel="stylesheet" href="style.css">
|
||||||
<script>
|
<script>
|
||||||
// the script doesn't not execute until the stylesheet is loaded
|
// the script doesn't execute until the stylesheet is loaded
|
||||||
alert(getComputedStyle(document.body).marginTop);
|
alert(getComputedStyle(document.body).marginTop);
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue