absolute+负margin

定宽高:

position: absolute

left: 50%

margin-left: -1/2width

posted @ 2021-01-26 14:59  李逍遥701  阅读(74)  评论(0)    收藏  举报