CSS:等宽的三栏布局 发表于 2019-12-05 | 分类于 CSS | | 阅读数 字数统计: 154 字 | 阅读时长 ≈ 1 分钟 12345<div class="box"> <div class="left"></div> <div class="center"></div> <div class="right"></div></div> float1234567891011121314151617.box { width: 100%; height: 200px; background: black;}.left, .center, .right { width: 33.33%; height: 100%; float: left; background: #FFA54F;}.center { background: #FFA500;}.right{ background: #FFA07A;} flex1234567891011121314151617.box { width: 100%; height: 200px; background: black; display: flex;}.left, .center, .right { width: 33.33%; height: 100%; background: #FFA54F;}.center { background: #FFA500;}.right{ background: #FFA07A;} table123456789101112131415161718.box { width: 100%; height: 200px; background: black; display: table;}.left, .center, .right { display: table-cell; width: 33.33%; height: 100%; background: #FFA54F;}.center { background: #FFA500;}.right{ background: #FFA07A;} 打赏 微信支付 支付宝 -------------本文结束 感谢您的阅读-------------