ExpLife0011#front-end-self-study-notes#行内块元素水平垂直居中的方法1 时间:2022-07-25 14:10:55 【文件属性】: 文件名称:ExpLife0011#front-end-self-study-notes#行内块元素水平垂直居中的方法1 文件大小:1KB 文件格式:MD 更新时间:2022-07-25 14:10:55 html span 设置了 display:table-cell 就相当于一个单元格,只有一个单元格的话,就自动水平居中了,之后设置vertical-align: mid 立即下载