列表中,因高度不同,导致排列错乱

这是因为在布局中使用了 float: left;

需要去掉浮动,具体样式如下:

.every_container {
  float: none;
  display: inline-block;  // 一行排多个
  vertical-align: top; //因高度不一致,靠顶部对齐
}

出处:https://blog.csdn.net/k_happy/article/details/88579601

posted on 2019-07-01 17:38  cag2050  阅读(313)  评论(0编辑  收藏  举报

导航