为什么我做出同样效果,但是right里面的写文字的时候它串位,直接换行,右侧平铺整个版面,求教
.parent{ display: table;table-layout: fixed;width: 100%;}
.left-3.right-3{display: table-cell;height: 300px;}
.left-3{width: 400px;background-color: beige;}
.right-3{background-color: blueviolet;}
<div class="parent">
<div class="left-3">3333</div>
<div class="right-3">3333</div>
</div>