如图

span和input布局时对不齐

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

vertical-align:top;

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

span和input布局时对不齐

两个不同大小的字体中间对齐
  display: flex;
  justify-content: center;
  align-content: center;

相关文章:

  • 2022-12-23
  • 2021-12-14
  • 2021-11-21
  • 2021-11-01
  • 2021-04-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案