我尝试了位置,高度100%,溢出,但出了点问题,所以我清除了我的代码,所以现在我站在这里:
.container {
background-color: blue;
overflow: hidden;
}
.left {
background-color: green;
float: left;
}
.right {
background-color: yellow;
float: left;
}
.center {
background-color: red;
float: left;
}
<div class="container">
<div class="left"> < left</div>
<div class="center">
<p>Holisticly underwhelm process-centric architectures via functionalized quality vectors. Collaboratively transform turnkey total linkage rather than value-added technologies.</p>
<p>Holisticly underwhelm process-centric architectures via functionalized quality vectors. Collaboratively transform turnkey total linkage rather than value-added technologies.</p>
</div>
<div class="right">right > </div>
</div>
谢谢
答案 0 :(得分:0)
试试这个。 。容器 显示:inline-flex; 弯曲方向:排; 如果你想要居中 Justify-content:center。
答案 1 :(得分:0)
display:flex
的替代方法是display:table
.container {
background-color: blue;
display: table;
width: 100%; /*optional*/
}
.container > div {
display: table-cell;
vertical-align: top;
}
.left {
background-color: green;
width: 75px; /*optional*/
}
.right {
background-color: yellow;
width: 75px; /*optional*/
text-align:right;
}
.center {
background-color: red;
}
&#13;
<div class="container">
<div class="left">< left</div>
<div class="center">
<p>Holisticly underwhelm process-centric architectures via functionalized quality vectors. Collaboratively transform turnkey total linkage rather than value-added technologies.</p>
<p>Holisticly underwhelm process-centric architectures via functionalized quality vectors. Collaboratively transform turnkey total linkage rather than value-added technologies.</p>
</div>
<div class="right">right ></div>
</div>
&#13;