{"id":2008,"date":"2023-03-25T14:33:59","date_gmt":"2023-03-25T06:33:59","guid":{"rendered":""},"modified":"2023-03-25T14:33:59","modified_gmt":"2023-03-25T06:33:59","slug":"Bootstrap Flexbox","status":"publish","type":"post","link":"https:\/\/bianchenghao6.com\/2008.html","title":{"rendered":"Bootstrap Flexbox"},"content":{"rendered":"


\n <\/head>
\n <\/p>\n

\n

Bootstrap Flexbox<\/h1>\n<\/p><\/div>\n

Bootstrap Flexbox <\/h2>\n
\n Flexbox\u7528\u4e8e\u901a\u8fc7\u4e00\u6574\u5957\u54cd\u5e94\u5f0fFlexbox\u5b9e\u7528\u7a0b\u5e8f\u5feb\u901f\u7ba1\u7406\u7f51\u683c\u5217\uff0c\u5bfc\u822a\uff0c\u7ec4\u4ef6\u7b49\u7684\u5e03\u5c40\uff0c\u5bf9\u9f50\u548c\u5927\u5c0f\u3002\n <\/div>\n
\n \u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u81ea\u5b9a\u4e49CSS\u8fdb\u884c\u590d\u6742\u7684\u5b9e\u73b0\u3002\n <\/div>\n
\n Flexbox\u5c5e\u6027:\n <\/div>\n

\u542f\u7528Flex\u884c\u4e3a<\/span>
\n \u65b9\u5411<\/span>
\n \u5408\u7406\u5316\u5185\u5bb9<\/span>
\n \u5bf9\u9f50\u9879<\/span>
\n \u81ea\u6211\u5bf9\u9f50<\/span>
\n \u5177\u6709\u5bf9\u9f50\u5185\u5bb9\u7684\u81ea\u52a8\u8fb9\u8ddd<\/span>
\n \u5e26\u6709\u5bf9\u9f50\u9879\u7684\u81ea\u52a8\u8fb9\u8ddd<\/span>
\n \u5305\u88f9<\/span>
\n \u6392\u5e8f<\/span>
\n \u5bf9\u9f50\u5185\u5bb9<\/span> <\/p>\n


\n

\u542f\u7528Flex\u884c\u4e3a<\/h2>\n
\n \" display\"\u5b9e\u7528\u7a0b\u5e8f\u7528\u4e8e\u521b\u5efa\u4e00\u4e2a\u7075\u6d3b\u7684\u5bb9\u5668\uff0c\u5e76\u5c06\u76f4\u63a5\u5b50\u5143\u7d20\u8f6c\u6362\u4e3aflex\u9879\u3002\n <\/div>\n
\n \u60a8\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6flex\u5c5e\u6027\u8fdb\u4e00\u6b65\u4fee\u6539flex\u5bb9\u5668\u548c\u9879\u76ee\u3002\n <\/div>\n
\n \u9ed8\u8ba4\u7684flexbox\u5bb9\u5668:\n <\/div>\n
\n
<div class=\"d-flex p-2\"<\/span>>I'm a flexbox container!<\/div><\/pre>\n

<\/code>\n <\/div>\n

\n \u5185\u8054Flexbox\u5bb9\u5668:\n <\/div>\n
\n
<div class=\"d-inline-flex p-2\"<\/span>>I'm an inline flexbox container!<\/div><\/pre>\n

<\/code>\n <\/div>\n

\n \u54cd\u5e94\u5f0fflexbox\u5bb9\u5668:\n <\/div>\n
\n .d-flex\u548c.d-inline-flex\u4e5f\u5b58\u5728\u54cd\u5e94\u53d8\u4f53\u3002\n <\/div>\n

.d-flex <\/span>
\n .d-inline-flex <\/span>
\n .d-sm-flex <\/span>
\n .d-sm-inline-flex <\/span>
\n .d-md-flex <\/span>
\n .d-md-inline-flex <\/span>
\n .d-lg-flex <\/span>
\n .d-lg-inline-flex <\/span>
\n .d-xl-flex <\/span>
\n .d-xl-inline-flex <\/span> <\/p>\n

Flexbox\u65b9\u5411<\/h3>\n
\n \u60a8\u53ef\u4ee5\u4f7f\u7528Direction\u5b9e\u7528\u7a0b\u5e8f\u5728flex\u5bb9\u5668\u4e2d\u8bbe\u7f6eflex\u9879\u7684\u65b9\u5411\u3002\u4e0d\u5fc5\u5728\u6b64\u5904\u6dfb\u52a0\u6c34\u5e73\u7c7b\uff0c\u56e0\u4e3a\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5b83\u662f\u884c\u3002\u5982\u679c\u53d1\u73b0\u5fc5\u987b\u8bbe\u7f6e\u6b64\u503c\u7684\u60c5\u51b5\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\" .flex-row\"\u8bbe\u7f6e\u6c34\u5e73\u65b9\u5411(\u6d4f\u89c8\u5668\u9ed8\u8ba4)\uff0c\u6216\u4f7f\u7528\uff1f.flex-row-reverse\uff1f\u4ece\u76f8\u53cd\u7684\u4e00\u4fa7\u5f00\u59cb\u6c34\u5e73\u65b9\u5411\u3002\n <\/div>\n
\n \u793a\u4f8b\n <\/div>\n
\n \u6c34\u5e73\u65b9\u5411(\u9ed8\u8ba4\u60c5\u51b5\u4e0b)\n <\/div>\n
\n
<div class=\"d-flex flex-row\"<\/span>>\r\n  <div class=\"p-2\"<\/span><\/span><\/span><\/span><\/span><\/span>>Flex item 1<\/div>\r\n  <div class=\"p-2\">Flex item 2<\/div>\r\n  <div class=\"p-2\">Flex item 3<\/div>\r\n<\/div>\r\n<div class=\"d-flex flex-row-reverse\"<\/span>>\r\n  <div class=\"p-2\">Flex item 1<\/div>\r\n  <div class=\"p-2\">Flex item 2<\/div>\r\n  <div class=\"p-2\">Flex item 3<\/div>\r\n<\/div><\/pre>\n

<\/code>\n <\/div>\n

\n \u5782\u76f4\u65b9\u5411\n <\/div>\n
\n \u60a8\u53ef\u4ee5\u4f7f\u7528\" .flex-column\"\u8bbe\u7f6e\u5782\u76f4\u65b9\u5411\uff0c\u6216\u4f7f\u7528\" .flex-column-reverse\"\u542f\u52a8\u5782\u76f4\u65b9\u5411\n <\/div>\n
\n \u793a\u4f8b\n <\/div>\n
\n
<div class=\"d-flex flex-column\"<\/span>>\r\n  <div class=\"p-2\"<\/span><\/span><\/span><\/span><\/span><\/span>>Flex item 1<\/div>\r\n  <div class=\"p-2\">Flex item 2<\/div>\r\n  <div class=\"p-2\">Flex item 3<\/div>\r\n<\/div>\r\n<div class=\"d-flex flex-column-reverse\"<\/span>>\r\n  <div class=\"p-2\">Flex item 1<\/div>\r\n  <div class=\"p-2\">Flex item 2<\/div>\r\n  <div class=\"p-2\">Flex item 3<\/div>\r\n<\/div><\/pre>\n

<\/code>\n <\/div>\n

\n \u54cd\u5e94\u5f0f\u53d8\u4f53\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5f39\u6027\u65b9\u5411:\n <\/div>\n
\n \u884c:\n <\/div>\n
\n .flex-row
\n
.flex-row-reverse\n <\/div>\n
\n \u5217:\n <\/div>\n
\n .flex-column
\n
.flex-column-reverse\n <\/div>\n
\n \u5c0f:\n <\/div>\n
\n .flex-sm-row
\n
.flex-sm-row-reverse
\n
.flex-sm-column
\n
.flex-sm-column-reverse\n <\/div>\n
\n \u4e2d:\n <\/div>\n
\n .flex-md-row-reverse
\n
.flex-md-row-reverse
\n
.flex-md-column
\n
.flex-md-column-reverse\n <\/div>\n
\n \u5927:\n <\/div>\n
\n .flex-lg-row
\n
.flex-lg-row-reverse
\n
.flex-lg-column
\n
\n <\/div>\n
\n .flex-lg-column-reverse\n <\/div>\n
\n \u7279\u5927:\n <\/div>\n
\n .flex-xl-row
\n
.flex-xl-row-reverse
\n
.flex-xl-column
\n
.flex-xl-column-reverse\n <\/div>\n

\u8c03\u6574\u5185\u5bb9<\/h3>\n
\n justify-content\u5b9e\u7528\u7a0b\u5e8f\u7528\u4e8e\u66f4\u6539\u5f39\u6027\u9879\u76ee\u5728\u4e3b\u8f74\u4e0a\u7684\u5bf9\u9f50\u65b9\u5f0f\u3002\n <\/div>\n
\n \u793a\u4f8b:\n <\/div>\n
\n
<div class=\"d-flex justify-content-start\"<\/span>>...<\/div>\r\n<div class=\"d-flex justify-content-end\"<\/span>>...<\/div>\r\n<div class=\"d-flex justify-content-center\"<\/span>>...<\/div>\r\n<div class=\"d-flex justify-content-between\"<\/span>>...<\/div>\r\n<div class=\"d-flex justify-content-around\"<\/span>>...<\/div><\/pre>\n

<\/code>\n <\/div>\n

\u8bc1\u660e\u5185\u5bb9\u7684\u54cd\u5e94\u53d8\u4f53<\/h3>\n
\n \u60a8\u8fd8\u53ef\u4ee5\u5c06\u6b63\u4e49\u5185\u5bb9\u7684\u54cd\u5e94\u53d8\u4f53\u4f7f\u7528\u3002\n <\/div>\n

.justify-content-start <\/span>
\n .justify-content-end <\/span>
\n .justify-content-center <\/span>
\n .justify-content-between <\/span>
\n .justify-content-around <\/span>
\n .justify-content-sm-start <\/span>
\n .justify-content-sm-end <\/span>
\n .justify-content-sm-center <\/span>
\n .justify-content-sm-between <\/span>
\n .justify-content-sm-around <\/span>
\n .justify-content-md-start <\/span>
\n .justify-content-md-end <\/span>
\n .justify-content-md-center <\/span>
\n .justify-content-md-between <\/span>
\n .justify-content-md-around <\/span>
\n .justify-content-lg-start <\/span>
\n .justify-content-lg-end <\/span>
\n .justify-content-lg-center <\/span>
\n .justify-content-lg-between <\/span>
\n .justify-content-lg-around <\/span>
\n .justify-content-xl-start <\/span>
\n .justify-content-xl-end <\/span>
\n .justify-content-xl-center <\/span>
\n .justify-content-xl-between <\/span>
\n .justify-content-xl-around <\/span> <\/p>\n

\u5bf9\u9f50\u9879<\/h3>\n
\n \u5728Flexbox\u5bb9\u5668\u4e0a\u4f7f\u7528 align items \u5b9e\u7528\u7a0b\u5e8f\u6765\u66f4\u6539\u5f39\u6027\u9879\u76ee\u5728\u6a2a\u8f74\u4e0a\u7684\u5bf9\u9f50\u65b9\u5f0f\u3002\u60a8\u53ef\u4ee5\u9009\u62e9\u5f00\u59cb\uff0c\u7ed3\u675f\uff0c\u5c45\u4e2d\uff0c\u57fa\u7ebf\u6216\u62c9\u4f38(\u6d4f\u89c8\u5668\u9ed8\u8ba4\u503c)\u3002\n <\/div>\n
\n \u793a\u4f8b:\n <\/div>\n
\n
<div class=\"d-flex align-items-start\"<\/span>>...<\/div>\r\n<div class=\"d-flex align-items-end\"<\/span>>...<\/div>\r\n<div class=\"d-flex align-items-center\"<\/span>>...<\/div>\r\n<div class=\"d-flex align-items-baseline\"<\/span>>...<\/div>\r\n<div class=\"d-flex align-items-stretch\"<\/span>>...<\/div><\/pre>\n

<\/code>\n <\/div>\n

\u5bf9\u9f50\u9879\u7684\u54cd\u5e94\u53d8\u4f53<\/h3>\n
\n \u60a8\u8fd8\u53ef\u4ee5\u4e3a\u5bf9\u9f50\u9879\u4f7f\u7528\u54cd\u5e94\u53d8\u4f53\u3002\n <\/div>\n

.align-items-start <\/span>
\n .align-items-end <\/span>
\n .align-items-center <\/span>
\n .align-items-baseline <\/span>
\n .align-items-stretch <\/span>
\n .align-items-sm-start <\/span>
\n .align-items-sm-end <\/span>
\n .align-items-sm-center <\/span>
\n .align-items-sm-baseline <\/span>
\n .align-items-sm-stretch <\/span>
\n .align-items-md-start <\/span>
\n .align-items-md-end <\/span>
\n .align-items-md-center <\/span>
\n .align-items-md-baseline <\/span>
\n .align-items-md-stretch <\/span>
\n .align-items-lg-start <\/span>
\n .align-items-lg-end <\/span>
\n .align-items-lg-center <\/span>
\n .align-items-lg-baseline <\/span>
\n .align-items-lg-stretch <\/span>
\n .align-items-xl-start <\/span>
\n .align-items-xl-end <\/span>
\n .align-items-xl-center <\/span>
\n .align-items-xl-\u57fa\u7ebf<\/span>
\n .align-items-xl-stretch <\/span> <\/p>\n

\u81ea\u8eab\u5bf9\u9f50<\/h3>\n
\n \u5728flexbox\u9879\u4e0a\u4f7f\u7528align-self-utility\u53ef\u4ee5\u5355\u72ec\u66f4\u6539\u5176\u5728\u6a2a\u8f74\u4e0a\u7684\u5bf9\u9f50\u65b9\u5f0f\u3002\u60a8\u53ef\u4ee5\u4ece\u4e0e\u5bf9\u9f50\u9879\u76ee\u76f8\u540c\u7684\u9009\u9879\u4e2d\u8fdb\u884c\u9009\u62e9: \u5f00\u59cb\uff0c\u7ed3\u675f\uff0c\u5c45\u4e2d\uff0c\u57fa\u7ebf\u6216\u62c9\u4f38(\u6d4f\u89c8\u5668\u9ed8\u8ba4)\u3002\n <\/div>\n
\n \u793a\u4f8b:\n <\/div>\n
\n
<div class=\"align-self-start\"<\/span>>Aligned flex item<\/div>\r\n<div class=\"align-self-end\"<\/span>>Aligned flex item<\/div>\r\n<div class=\"align-self-center\"<\/span>>Aligned flex item<\/div>\r\n<div class=\"align-self-baseline\"<\/span>>Aligned flex item<\/div>\r\n<div class=\"align-self-stretch\"<\/span>>Aligned flex item<\/div><\/pre>\n

<\/code>\n <\/div>\n

\u9488\u5bf9\u81ea\u6211\u7684\u54cd\u5e94\u53d8\u5f02<\/h3>\n
\n \u60a8\u8fd8\u53ef\u4ee5\u9488\u5bf9\u81ea\u6211\u7684\u54cd\u5e94\u53d8\u5f02\u3002\n <\/div>\n

.align-self-start <\/span>
\n .align-self-end <\/span>
\n .align-self-center <\/span>
\n .align-self-baseline <\/span>
\n .align-self-stretch <\/span>
\n .align-self-sm-start <\/span>
\n .align-self-sm-end <\/span>
\n .align-self-sm-center <\/span>
\n .align-self-sm-baseline <\/span>
\n .align-self-sm-stretch <\/span>
\n .align-self-md-start <\/span>
\n .align-self-md-end <\/span>
\n .align-self-md-center <\/span>
\n .align-self-md-baseline <\/span>
\n .align-self-md-stretch <\/span>
\n .align-self-lg-start <\/span>
\n .align-self-lg-end <\/span>
\n .align-self-lg-center <\/span>
\n .align-self-lg-baseline <\/span>
\n .align-self-lg-stretch <\/span>
\n .align-self-xl-start <\/span>
\n .align-self-xl-end <\/span>
\n .align-self-xl-center <\/span>
\n .align-self-xl-baseline<\/span>
\n .align-self-xl-stretch <\/span> <\/p>\n

\u81ea\u52a8\u8fb9\u8ddd<\/h3>\n
\n \u5728flexbox\u4e2d\uff0c\u60a8\u53ef\u4ee5\u5c06\u5f39\u6027\u5bf9\u9f50\u65b9\u5f0f\u4e0e\u81ea\u52a8\u8fb9\u8ddd\u6df7\u5408\u4f7f\u7528\uff0c\u4ee5\u5b8c\u6210\u4e00\u4e9b\u975e\u5e38\u68d2\u7684\u4e8b\u60c5\u3002\n <\/div>\n

\u4f7f\u7528justify-content <\/h3>\n
\n \u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u6240\u6709\u5f39\u6027\u9879\u76ee\u79fb\u5230\u4e00\u4fa7\uff0c\u4f46\u901a\u8fc7\u5c06justify-content\u4e0emargin-right\u6df7\u5408\u5728\u4e00\u8d77\uff0c\u53ef\u4ee5\u5c06\u53e6\u4e00\u4fa7\u7559\u5728\u53e6\u4e00\u7aef: \u81ea\u52a8\u6216\u5de6\u8fb9\u8ddd: \u81ea\u52a8\u3002\n <\/div>\n
\n \u793a\u4f8b:\n <\/div>\n
\n
<div class=\"d-flex justify-content-end\"<\/span>>\r\n  <div class=\"mr-auto p-2\"<\/span>>Flex item<\/div>\r\n  <div class=\"p-2\"<\/span><\/span><\/span><\/span>>Flex item<\/div>\r\n  <div class=\"p-2\">Flex item<\/div>\r\n<\/div>\r\n<div class=\"d-flex justify-content-start\"<\/span>>\r\n  <div class=\"p-2\">Flex item<\/div>\r\n  <div class=\"p-2\">Flex item<\/div>\r\n  <div class=\"ml-auto p-2\"<\/span>>Flex item<\/div>\r\n<\/div><\/pre>\n

<\/code>\n <\/div>\n

\u4f7f\u7528align-items <\/h3>\n
\n \u60a8\u53ef\u4ee5\u901a\u8fc7\u6df7\u5408align-items\uff0cflex-direction: column\u548cmargin-\u7c7b\u4f3c\u5730\u5c06\u4e00\u4e2aflex\u9879\u79fb\u52a8\u5230\u5bb9\u5668\u7684\u9876\u90e8\u6216\u5e95\u90e8\u3002 top: \u81ea\u52a8\u6216margin-bottom: \u81ea\u52a8\u3002\n <\/div>\n
\n \u793a\u4f8b:\n <\/div>\n
\n
<div class=\"d-flex align-items-start flex-column\"<\/span> style=\"height: 200px;\"<\/span><\/span>>\r\n  <div class=\"mb-auto p-2\"<\/span>>Flex item<\/div>\r\n  <div class=\"p-2\"<\/span><\/span><\/span><\/span>>Flex item<\/div>\r\n  <div class=\"p-2\">Flex item<\/div>\r\n<\/div>\r\n<div class=\"d-flex align-items-end flex-column\"<\/span> style=\"height: 200px;\">\r\n  <div class=\"p-2\">Flex item<\/div>\r\n  <div class=\"p-2\">Flex item<\/div>\r\n  <div class=\"mt-auto p-2\"<\/span>>Flex item<\/div>\r\n<\/div><\/pre>\n

<\/code>\n <\/div>\n

\u5305\u88f9<\/h3>\n
\n \u5b83\u7528\u4e8e\u66f4\u6539\u5f39\u6027\u9879\u76ee\u5728\u5f39\u6027\u5bb9\u5668\u4e2d\u7684\u5305\u88f9\u65b9\u5f0f\u3002\u60a8\u53ef\u4ee5\u9009\u62e9\u4ee5\u4e0b\u5185\u5bb9:\n <\/div>\n
\n \u4e0d\u5305\u88f9: .flex-nowrap\n <\/div>\n
\n \u5305\u88f9: .flex-wrap\n <\/div>\n
\n \u53cd\u5411\u5305\u88f9: .flex-wrap-reverse\n <\/div>\n
\n flex-wrap\u7684\u54cd\u5e94\u53d8\u4f53\n <\/div>\n
\n \u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u81ea\u9002\u5e94\u53d8\u4f53\u8fdb\u884c\u5f2f\u66f2\u5305\u88f9\u3002\n <\/div>\n

.flex-nowrap <\/span>
\n .flex-wrap <\/span>
\n .flex-wrap-reverse <\/span>
\n .flex-sm-nowrap <\/span>
\n .flex-sm-wrap <\/span>
\n .flex-sm-wrap-reverse <\/span>
\n .flex-md-nowrap <\/span>
\n .flex-md-wrap <\/span>
\n .flex-md-wrap-reverse <\/span>
\n .flex-lg-nowrap <\/span>
\n .flex-lg-wrap <\/span>
\n .flex-lg-wrap-reverse <\/span>
\n .flex-xl-nowrap <\/span>
\n .flex-xl-wrap <\/span>
\n .flex-xl-wrap-reverse <\/span> <\/p>\n

\u6392\u5e8f: <\/h3>\n
\n \u5b83\u7528\u4e8e\u901a\u8fc7\u4e00\u4e9b\u8ba2\u8d2d\u5de5\u5177\u6765\u66f4\u6539\u7279\u5b9a\u5f39\u6027\u5546\u54c1\u7684\u89c6\u89c9\u8ba2\u8d2d\u3002\n <\/div>\n
\n \u60a8\u53ef\u4ee5\u5148\u521b\u5efa\u4e00\u4e2a\u9879\u76ee\uff0c\u4e5f\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u6700\u540e\u4e00\u4e2a\u9879\u76ee\uff0c\u4ee5\u4f7f\u7528DOM\u987a\u5e8f\u8fdb\u884c\u91cd\u7f6e\u3002\u7531\u4e8eorder\u91c7\u7528\u4efb\u4f55\u6574\u6570\u503c(\u4f8b\u59825)\uff0c\u8bf7\u4e3a\u6240\u6709\u6240\u9700\u7684\u5176\u4ed6\u503c\u6dfb\u52a0\u81ea\u5b9a\u4e49CSS\u3002\n <\/div>\n
\n \u793a\u4f8b:\n <\/div>\n
\n
<div class=\"d-flex flex-nowrap\"<\/span>>\r\n  <div class=\"flex-last p-2\"<\/span>>First flex item<\/div>\r\n  <div class=\"p-2\"<\/span>>Second flex item<\/div>\r\n  <div class=\"flex-first p-2\"<\/span>>Third flex item<\/div>\r\n<\/div><\/pre>\n

<\/code>\n <\/div>\n

\u6392\u5e8f\u7684\u54cd\u5e94\u53d8\u4f53<\/h3>\n
\n \u60a8\u8fd8\u53ef\u4ee5\u4e3a\u6392\u5e8f\u4f7f\u7528\u54cd\u5e94\u53d8\u4f53:\n <\/div>\n

.order-first <\/span>
\n .order-last <\/span>
\n .order-ordered <\/span>
\n .order-sm-first <\/span>
\n .order-sm-last <\/span>
\n .order-sm-unordered <\/span>
\n .order-md-first <\/span>
\n .order-md-last <\/span>
\n .order-md-unordered <\/span>
\n .order-lg-first <\/span>
\n .order-lg-last <\/span>
\n .order-lg-unordered <\/span>
\n .order-xl-first <\/span>
\n .order-xl-last <\/span>
\n .order-xl-unordered <\/span> <\/p>\n

\u5bf9\u9f50\u5185\u5bb9<\/h3>\n
\n \u5728flexbox\u5bb9\u5668\u4e0a\u4f7f\u7528align-content\u5b9e\u7528\u7a0b\u5e8f\u53ef\u5c06\u5f39\u6027\u9879\u76ee\u5728\u6a2a\u8f74\u4e0a\u5bf9\u9f50\u5728\u4e00\u8d77\u3002\u60a8\u53ef\u4ee5\u9009\u62e9\u5f00\u59cb(\u6d4f\u89c8\u5668\u9ed8\u8ba4)\uff0c\u7ed3\u675f\uff0c\u5c45\u4e2d\uff0c\u4e4b\u200b\u200b\u95f4\uff0c\u5468\u56f4\u6216\u4f38\u5c55\u3002\n <\/div>\n
\n \u4e3a\u4e86\u6f14\u793a\u8fd9\u4e9b\u5b9e\u7528\u7a0b\u5e8f\uff0c\u6211\u4eec\u5f3a\u5236\u6267\u884c\u4e86flex-wrap: \u5305\u88f9\u5e76\u589e\u52a0\u4e86f\u7684\u6570\u91cflex\u9879\u3002\n <\/div>\n
\n \u6ce8\u610f!\u6b64\u5c5e\u6027\u5bf9\u5f39\u6027\u9879\u76ee\u7684\u5355\u884c\u6ca1\u6709\u5f71\u54cd\u3002\n <\/div>\n
\n \u5f00\u59cb:\n <\/div>\n
\n
<div class=\"d-flex align-content-start flex-wrap\"<\/span>>\r\n  ...\r\n<\/div><\/pre>\n

<\/code>\n <\/div>\n

\n \u7ed3\u675f:\n <\/div>\n
\n
<div class=\"d-flex align-content-end flex-wrap\"<\/span>>...<\/div><\/pre>\n

<\/code>\n <\/div>\n

\n \u4e2d\u5fc3:\n <\/div>\n
\n
<div class=\"d-flex align-content-center flex-wrap\"<\/span>>...<\/div> <\/pre>\n

<\/code>\n <\/div>\n

\n \u4e4b\u95f4:\n <\/div>\n
\n
<div class=\"d-flex align-content-between flex-wrap\"<\/span>>...<\/div><\/pre>\n

<\/code>\n <\/div>\n

\n \u5468\u56f4:\n <\/div>\n
\n
<div class=\"d-flex align-content-around flex-wrap\"<\/span>>...<\/div><\/pre>\n

<\/code>\n <\/div>\n

\n \u62c9\u4f38:\n <\/div>\n
\n
<div class=\"d-flex align-content-stretch flex-wrap\"<\/span>>...<\/div><\/pre>\n

<\/code>\n <\/div>\n

\u5bf9\u9f50\u5185\u5bb9\u7684\u54cd\u5e94\u53d8\u4f53<\/h3>\n
\n \u60a8\u8fd8\u53ef\u4ee5\u4e3a\u5bf9\u9f50\u5185\u5bb9\u4f7f\u7528\u54cd\u5e94\u53d8\u4f53:\n <\/div>\n

.align-content-start <\/span>
\n .align-content-end <\/span>
\n .align-content-center <\/span>
\n .align-content-around <\/span>
\n .align-content-stretch <\/span>
\n .align-content-sm-start <\/span>
\n .align-content-sm-end <\/span>
\n .align-content-sm-center <\/span>
\n .align-content-sm-around <\/span>
\n .align-content-sm-stretch <\/span>
\n .align-content-md-start <\/span>
\n .align-content-md-end <\/span>
\n .align-content-md-center <\/span>
\n .align-content-md-around <\/span>
\n .align-content-md-stretch <\/span>
\n .align-content-lg-start <\/span>
\n .align-content-lg-end <\/span>
\n .align-content-lg-center <\/span>
\n .align-content-lg-around <\/span>
\n .align-content-lg-stretch <\/span>
\n .align-content-xl-start <\/span>
\n .align-content-xl-end <\/span>
\n .align-content-xl-center <\/span>
\n .align-content-xl-around <\/span>
\n .align-content-xl-stretch <\/span>
\n
\n <\/body>
\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"Bootstrap Flexboxzh-cn","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[163],"tags":[],"class_list":["post-2008","post","type-post","status-publish","format-standard","hentry","category-bootstrapjc"],"_links":{"self":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/2008"}],"collection":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/comments?post=2008"}],"version-history":[{"count":0,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/2008\/revisions"}],"wp:attachment":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/media?parent=2008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/categories?post=2008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/tags?post=2008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}