?? ??? ??? ???? ???. ???? ??? ?? ? ????. ??? ? HTML???:
???JSFiddle ??
[2022? 4? ????]: ???? ?? 5.1
????? ??? ???????.
? ??? ?????? ?? ?? ????. ??? ???? ?? ?? ??? Bootstrap? ???? ??? ???? ?????. ??? ?? ? ??? ?? ?? ?? ?????? ?????.
? ?? ??? ??? ? ??? ???? ?? ????? 5.0(2020) ? 4.5(2019) ?????? ???? ??? ?? ??? ??? ???? ????.
? div? d-flex justify-content-center
? ?????. ??? ?? ?? ?? ??? ??? ?????.
? ??? ???? ????? text-center
?? ???? ???? ?? ?? d-flex
justify-content-center
? d-flex
justify-content-center
和 text-center
? ???? ???.
???:
?????
???????? 3 CSS? ??? ?? ????:
???Bootstrap 4?? ?? ??? ??? Flex ???? ????.
??????? x-axis
,除非flex-direction
是column