这里是我的代码如何将图像放在div的顶部?
<div id="content_main2">
<div id="content_main2_left"><img src="../images/logo.png"></div>
</div>
CSS
#content_main2
{
width:800px;
height:200px;
}
#content_main2_left
{
float:left;
width:300px;
height:240px;
margin-top:-40px;
-webkit-border-radius:15px;
-moz-border-radius:15px;
border-radius:15px;
background:#817339;
}
我的结果
BT我需要在DIV的顶部显示标志。我的意思是一半#content_main2
div和另一半#content_main2_left
。我该怎么做 ?