🌈 搜索
📅  最后修改于: 2022-03-11 14:47:54.491000             🧑  作者: Mango
.container{ position: relative; } .child{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, 50%); }