将div定位在其父级下方.位置:绝对; 底部:0; 不工作?

Ron*_*EXP 4 html css css-position

基本上我需要让一个圆圈看起来像挂在一个字符串上.我使用了基本的CSS:

#string {
    position: relative;
}
#circle {
    position: absolute;
    bottom: 0;
}
Run Code Online (Sandbox Code Playgroud)

并且它将圆圈放在底部,但不是在"弦"之下它位于它的右侧,而是位于底部.我傻了吗?我究竟做错了什么?

编辑:完整的代码

<div class="anchor" id="one">
    <div class="circle" id="one">
    </div>
</div>

html, body { height: 100%; width: 100%; }
body {
    font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
    background: #DDD;
    margin: 0;
    padding: 0;
    color: #000;
}
.anchor {
    background-color: #000;
        position: relative;
    width: 10px;
}
.anchor#one {
    margin-left: 10%;
    height: 500px;
}
.circle {
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    background-color: #000;
}   
.circle#one {
    width: 200px;
    height: 200px;
}
Run Code Online (Sandbox Code Playgroud)

fre*_*nte 9

bottom设置元素底部边框与其偏移父级的距离.

要做你想做的事,你需要使用top:

#circle {
    position: absolute;
    top: 100%;
}
Run Code Online (Sandbox Code Playgroud)