span和input布局时对不齐

如图

在span和input的css里各添加一行代码:

vertical-align:top;

(span和input在同一个盒子里)

两个不同大小的字体中间对齐
  display: flex;
  justify-content: center;
  align-content: center;
posted @ 2020-08-05 16:28  夏目的三三  阅读(1692)  评论(0编辑  收藏  举报