**position**
* 描述:设置对象的定位方式。
* 版本:CSS2/3
* 继承性:无
**语法**
```
position: 样式值;
```
样式值
**使用说明**
**代码示例**
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>position</title>
<style>
#container{
position: absolute;
top: 20px;
left: 50px;
width: 100px;
height: 100px;
background-color: #FF6600;
}
</style>
</head>
<body>
<div id="container">
position
</div>
</body>
</html>
```
![position](https://box.kancloud.cn/453b3dea36707dfeb7b20266fa055523_222x172.png)
- 空白目录
- CSS3专业名词
- 复合属性
- 继承性
- CSS3背景
- background
- background-color
- background-image
- background-repeat
- background-attachment
- background-position
- background-origin
- background-clip
- background-size
- CSS边框
- border
- border-width
- border-style
- border-color
- border-top
- border-top-width
- border-top-style
- border-top-color
- border-right
- border-right-width
- border-right-style
- border-right-color
- border-bottom
- border-bottom-width
- border-bottom-style
- border-bottom-color
- border-left
- border-left-width
- border-left-style
- border-left-color
- border-radius
- border-top-left-radius
- border-top-right-radius
- border-bottom-right-radius
- border-bottom-left-radius
- CSS颜色
- color
- opacity
- CSS字体
- font
- font-style
- font-variant
- font-weight
- font-size
- font-family
- font-stretch
- font-size-adjust
- CSS定位
- position
- z-index
- clip