BFC有一條規(guī)則BFC的區(qū)域不會(huì)與float box重疊position為absolute和fixed會(huì)生成一個(gè)BFC,但如下代碼<style>.aside { width: 100px; height: 150px; float: left; background: #f66; } .main { height: 200px; background: #fcc; position: absolute; width:200px; }</style><body> <div class="aside"></div> <div class="main"></div></body>.aside和.main依然會(huì)重疊,請(qǐng)問(wèn)如何理解?
BFC的問(wèn)題
精慕HU
2018-12-12 12:15:52