freeCodeCamp/guide/chinese/css/properties/position-property/index.md

21 lines
557 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Position Property
localeTitle: 职位财产
---
## 职位财产
position属性指定用于元素的定位方法的类型。它有五个关键字值
```css
.static { position: static; }
.relative { position: relative; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.absolute { position: absolute; }
```
#### 更多信息:
文件: [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/position)
浏览器支持: [caniuse](http://caniuse.com/#search=position)