һվʱҳβ˵˵ģ飬ʵԪUL븸Ԫdiv#linksʱ margin-topЧ
html룺
CSS룺
#links{height:105px; background:url(../images/linkbg.gif) no-repeat; margin-top:10px;}
#links ul{ display:block; width:905px; margin-left:40px; margin-top:10px;}
#links ul li{ display:inline-block; width:100px; text-align:center; line-height:30px; float:left}
Ƿulmarginƶûãϲһԭ˵ǡmarginbugм
1.ڸԪؼborderֵ0noneЧ
2.ڸڲϡԪ
3.ڸԪؼӣ float:left; (clear:both;)
4.ڸԪؼӣoverflow:hidden;
Ҹ˾ûǵֱȽϺã12ַе㲻ײģָɣûС֢Լoverflow:hidden;Ƚϱա