HTML:
<div id="a">A</div>
<div id="b">B</div>
CSS:
#a {
float: left;
width: 30px;
height: 30px;
color: white;
background-color: red;
border: 1px solid black;
text-align: center;
}
#b {
margin-left: 25px;
width: 30px;
height: 40px;
color: white;
background-color: green;
border: 1px solid black;
text-align: center;
}
在这里查看我的代码:http: //jsfiddle.net/mxtdg/;
好像A在B之上,如果我想让B在A之上怎么办?