by zhangxinxu 2009-08-24 23:39

css margin双倍边距的问题

问题出现
margin:20px; background:#cacbcc; color:white; float:left;
问题解决(display:inline;)
display:inline; margin:20px; background:#cacbcc; color:white; float:left;
问题解决(去掉float)
margin:20px; background:#cacbcc; color:white;