从前:

.block {
  display: inline-block;
}
.block-left {
  display: block;
  float: left;
}
.block-right {
  display: block;
  float: right
}
.clearfix::after {
  content: '';
  display: none;
  clear: both;
  height: 0;
}

如今:

.block {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}
.block-left {
  display: inline
}
.block-right {
  display: inline
}

共有 0 条评论

       

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注