【发布时间】:2017-12-10 22:50:30
【问题描述】:
运行此代码时,右侧的列会远远超出屏幕,向右。
我希望侧栏具有响应性,而中间栏具有固定宽度。
如何让它在 IE10 中运行?
布局:
<div class="wrapper">
<div class="left"></div>
<div class="middle">
<div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin eget ante bibendum, cursus diam sit amet
</div>
</div>
<div class="right"></div>
</div>
CSS:
.wrapper {
height: 80px;
width: 100%;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-align-items: center;
align-items: center;
-webkit-justify-content: center;
justify-content: center;
}
.wrapper .left {
height: 100%;
flex: 0 0 100%;
background-color: yellow;
}
.wrapper .middle {
height: 100%;
flex: 0 0 800px;
background-color: orange;
}
.wrapper .right {
height: 100%;
flex: 0 0 100%;
background-color: red;
}
【问题讨论】:
标签: css flexbox internet-explorer-10