yangsirgo / good-good-study

水平垂直居中,这是一道面试必考题,^_^
0 stars 0 forks source link

css 水平居中


居中元素不定宽高:

absolute + transform

https://yangsirgo.github.io/good-good-study/transform.html

lineheight

https://yangsirgo.github.io/good-good-study/lineheight.html

flex

https://yangsirgo.github.io/good-good-study/flex.html

css-table

https://yangsirgo.github.io/good-good-study/css-table.html