absolute+负margin

定宽高:

position: absolute

left: 50%

margin-left: -1/2width

posted @ 2021-01-26 14:59  呈心者  阅读(69)  评论(0编辑  收藏  举报