*{margin:0; padding:0;}
#wrap{width:970px;margin:0px auto;}
#mainbody{position:relative; margin-top:15px;}
#left{float:left;width:110px; }
#mid{float:left;margin-left:13px;width:650px;border:1px solid #999;}
#right{position:absolute;margin-left:790px; border:1px solid #999;}
#wrap{width:970px;margin:0px auto;}
#mainbody{position:relative; margin-top:15px;}
#left{float:left;width:110px; }
#mid{float:left;margin-left:13px;width:650px;border:1px solid #999;}
#right{position:absolute;margin-left:790px; border:1px solid #999;}
2017-03-16
*{margin:0; padding:0;}
#wrap{width:970px;margin:0 auto;}
#mainbody{position:relative; margin-top:15px;}
#left{float:left;width:110px;border:1px solid #999; }
#mid{float:left; margin-left:13px;width:650px;border:1px solid #999;}
#right{position:absolute;top:0;left:794px;border:1px solid #999;}
#wrap{width:970px;margin:0 auto;}
#mainbody{position:relative; margin-top:15px;}
#left{float:left;width:110px;border:1px solid #999; }
#mid{float:left; margin-left:13px;width:650px;border:1px solid #999;}
#right{position:absolute;top:0;left:794px;border:1px solid #999;}
2017-03-15
注意:直接在css中设置left生效的前提是必须设置父容器position:absolute或relative,如果不设置则会显示为最近一个定位的父对象左边相关的位置.
2017-03-14
#wrap{width:970px; margin:0 auto;}
#mainbody{margin-top:15px; width:100%; position:absolute;}
#left{width:110px; float:left;position:absolute; left:0; top:0; }
#mid{width:650px;border:1px solid #999; margin-left:100px;}
#right{ width:177px;border:1px solid #999; position:absolute; right:0; top:0;}
#mainbody{margin-top:15px; width:100%; position:absolute;}
#left{width:110px; float:left;position:absolute; left:0; top:0; }
#mid{width:650px;border:1px solid #999; margin-left:100px;}
#right{ width:177px;border:1px solid #999; position:absolute; right:0; top:0;}
2017-03-13