Skip to content

七种方式实现垂直居中 | ericasun的Hexo博客 #44

Description

@ericasun

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 垂直居中;如&#x67

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions