https://ericasun.github.io/2024/04/02/Font-end/css/%E4%B8%83%E7%A7%8D%E6%96%B9%E5%BC%8F%E5%AE%9E%E7%8E%B0%E5%9E%82%E7%9B%B4%E5%B1%85%E4%B8%AD/ 如果 .parent 的 height 不写,你只需要 padding: 10px 0; 就能将 .child 垂直居中;如g