【发布时间】:2015-01-22 12:08:34
【问题描述】:
我想创建 rowise 块 ie
| | div2| |div1 |div3 | |_______|div4|
但是当我尝试这个时,'div2' 低于 'div1' 我尝试显示 rowise 还有 div_container 包含所有 div1,div2,div3,div4 但它不起作用 我的html代码
#div_container
{
height:325 px;
width:600px;
border-style: solid;
}
#div1
{
height:325px;
width:400px;
border-style: solid;
}
#div2
{
height:108px;
width:200px;
border-style: solid;
}
#div3
{
height:108px;
width:200px;
border-style: solid;
}#div4
{
height:108px;
width:200px;
border-style: solid;
}
<div id="div_container">
<div id="div1">
</div>
<div id="div2">
</div>
<div id="div3">
</div>
<div id="div4">
</div>
</div>
请给我建议 提前谢谢你
【问题讨论】:
-
将
display:inline-block添加到每个框样式。 -
您也可以将其浮动到左侧:“float: left;”