为什么设置位置:相对而不改变位置?

Rui*_*Xia 0 html css

我正在学习CSS,我想知道为什么我们设置位置:相对即使我们没有设置具体位置,例如left: 20px,top: 10px.下面是一个css代码示例.

#home #header {
    position: relative;
    width: 822px;
    height: 152px;
    margin: 0 19px;
    padding: 0;
    overflow: hidden;
}

#header {
    position: relative;
    width: 822px;
    height: 152px;
    margin: 0 19px;
    padding: 0;
    overflow: hidden;
    background: url(img/bg-content-wrap-top-int.png) no-repeat center bottom;
}
Run Code Online (Sandbox Code Playgroud)

mor*_*wry 8

通常是以下三个原因之一: