關于 clear 其實可以參考 http://www.zhangxinxu.com/wordpress/2014/06/understand-css-clear-left-right-and-use/ 這篇文章
2015-09-29
已采納回答 / pardon110
background-color 屬性用來定義元素的背景顏色。body {background-color: #b0c4de;}CSS中,顏色值通常以以下方式定義:十六進制 - 如:#ff0000????它的三位顏色簡寫為 #f00RGB - 如:rgb(255,0,0)顏色名稱 - 如:red默認 - transparent,透明之意。如果一個元素沒有指定背景色,那么背景就是透明的。inherit 從父元素繼承背景顏色,這個在IE上存在兼容問題。
2015-09-27
#wrap{width:970px; margin:0 auto;}
#mainbody{position:relative; margin-top:15px;}
#left{float:left; width:110px; }
#mid{margin-left:123px;width:650px;border:1px solid #999;}
#right{position:absolute; top:0; left:793px; border:1px solid #999;}
#mainbody{position:relative; margin-top:15px;}
#left{float:left; width:110px; }
#mid{margin-left:123px;width:650px;border:1px solid #999;}
#right{position:absolute; top:0; left:793px; border:1px solid #999;}
2015-09-27