方法1.给最后一个元素加上display:inline-block 让元素以内联块元素显示方法2.给最后一个元素加上float方法3.子元素都浮动或display:inline-block.外边距不再合并