<style type="text/css">*{? ? border:0px;? ? margin:0px;? ? padding:0px;}.head{width:100%;? ? ? height:200px; ?background:azure; ?}.main{ width:600px; margin:0 auto; height:500px; background:pink; }.left{ float:left; height:500px; background:red; width:200px; }.right{ float:left; height:500px; background:gray; width:400px; }.rl{ float:left; width:100px; height:500px; background:pink; }.rr{ float:right; width:300px; height:500px; background:aqua; }.foot{ ?width:100%; ?height:200px; ?background:purple; ?}</style></head><body><div class="head"></div><div class="main">? ? <div class="left"></div>? ? <div class="right">? ? ? ? <div class=“rl”></div>? ? ? ? <div class="rr"></div>? ? </div></div><div class="foot"></div></body></html>為什么中間層沒有顯示粉色?
CSS實現(xiàn)混合布局
Geminihope
2016-03-25 18:19:24