Files
freeCodeCamp/guide/chinese/css/css-position/index.md
2018-10-16 21:32:40 +05:30

23 lines
672 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: CSS Position
localeTitle: CSS职位
---
## CSS职位
position属性指定用于元素的定位方法的类型。它有5个关键字值
```css
.static { position: static; } // default value
.relative { position: relative; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.absolute { position: absolute; }
```
### 更多信息:
MDN文档 [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/position)
浏览器支持: [caniuse](http://caniuse.com/#search=position)
YouTube [Part1](https://www.youtube.com/watch?v=kejG8G0dr5U) | [第2部分](https://www.youtube.com/watch?v=Rf6zAP4YnZA)