contents(quiz): fix typo in CSS positioning question (#430)

This commit is contained in:
MonsterPi 2024-06-01 14:32:55 +08:00 committed by GitHub
parent c89ee226f9
commit 99cc1de3f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ title: '`relative`, `absolute`, `fixed` 和 `sticky` 定位的元素之间有什
定位元素是一个元素,其计算的 `position` 属性是 `relative`, `absolute`, `fixed` 或 `sticky`。
- `static`: 默认位置; 元素将会像通常那样流入页面。 `top`, `right`, `bow`, `left` 和 `z-index` 属性不生效。
- `static`: 默认位置; 元素将会像通常那样流入页面。 `top`, `right`, `bottom`, `left` 和 `z-index` 属性不生效。
- `relative`:元素的位置相对于它自己进行调整,而不改变布局(从而在元素没有被定位的情况下为它留下一个缺口)。
- `absolute`:该元素从页面流中移除,并相对于其最近的祖先(如果有的话)或相对于初始包含块的指定位置定位。 绝对位置的方框可以有边距,而且它们不会与任何其他外边距一起折叠。 这些元素不影响其他元素的位置。
- `fixed`:该元素被从页面流中移除,并被定位在相对于视口的指定位置,滚动时不会移动。