我试图将两个 div 放在包装 div 内的同一行(最好是居中)。我编写的代码在 FF 和 IE10 中运行良好。几乎每个版本的 IE <10 都不喜欢它。谁能帮忙,谢谢!
html:
<div id="home_wrapper">
<div id="links_location" class="shadow">content</div>
<div id="iframe_location" class="shadow">content</div>
</div>
CSS:
#home_wrapper {
width: 100%;
text-align: center;
border: 1px solid blue;
float:left;
}
#links_location, #iframe_location {
display: inline-block;
background-color:White;
!important
}
#links_location {
width:20%;
height:400px;
text-align:left;
border: 1px solid red;
}
#iframe_location {
height:400px;
width:70%;
border: 1px solid black;
}
jsfiddle _