0
我試圖將'藍色'放在父容器的底部'綠色'。我試過以下this answer,但無法使它工作。我想要藍色的div在綠色div的底部。Absoloute位置分隔到相對父母的底部
#green {
\t position:relative;
\t width:auto;
\t height:200px;
\t background-color:green;
}
#blue {
\t position:absoloute;
\t bottom:0;
\t height:75px;
\t width:auto;
\t background-color:blue;
}
<div id="green">
\t <div id="blue"></div>
</div>
感謝。
變化'absoloute'到'absolute'的工作示例。 – Guffa
謝謝!我修正了錯字,並將寬度設置爲100%,並且工作正常。 –