為什么我做出同樣效果,但是right里面的寫(xiě)文字的時(shí)候它串位,直接換行,右側(cè)平鋪整個(gè)版面,求教
.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>
2019-11-20
這樣就要想想,你本來(lái)設(shè)置了高度呢,對(duì)應(yīng)的高度沒(méi)顯現(xiàn)出來(lái)
2019-11-20
告訴你一個(gè)低級(jí)的錯(cuò)誤,你的css格式寫(xiě)錯(cuò)了哦,第二行少了一個(gè)逗號(hào),.left-3,.right-3
2019-11-15
展示變成這種效果,求解