<div id="foo">
<div id="tree">Some Text here</div>
</div>
Run Code Online (Sandbox Code Playgroud)
#foo {
display: block;
width: 500px;
height: 500px;
background: #5e5e5e;
}
#tree {
width: 100px;
height: 30px;
background: #000000;
}
Run Code Online (Sandbox Code Playgroud)
我需要将树放置在foo的右上角。