就像水平居中元素一样,Flexbox 使垂直居中元素变得超级简单。 设置父元素的属性值为 display: flex 和 align-items: center ,即可真正垂直居中元素:
確定! 回上一頁