21 lines
557 B
Markdown
21 lines
557 B
Markdown
---
|
||
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) |