2个div显示在同一行
1.
<div>
? <div style="display: inline"> a</div>
? <div style="display: inline">b</div>
</div>
?
2.如下:
<div class="index_topic">
test1
</div>
<div class="index_topic">
test2
</div>
?
.index_topic {
margin:8px;
margin-left:0px;
margin-right:50px;
width:280px;
height:300px;
float:left;
overflow:hidden;
background:url(../images/line_gray.gif) repeat-x
}