li横向并排2列排版,保证每行的两个li高度一致

li做浮动布局,左右高度不一致会出现错乱

 解决:

 li:nth-of-type(odd){clear:both;}

原文地址:https://www.cnblogs.com/ghfjj/p/7337169.html