如何将元素对齐到 div 盒子的右侧?
我的 div
<div id="foo">
<div id="tree">Some Text here</div>
</div>
我的CSS
#foo {
display: block;
width: 500px;
height: 500px;
background: #5e5e5e;
}
#tree {
width: 100px;
height: 30px;
background: #000000;
}
我需要在 foo 的右上角放置一棵 树。