{"id":10220,"date":"2021-12-08T22:06:15","date_gmt":"2021-12-08T14:06:15","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=10220"},"modified":"2021-12-08T22:06:15","modified_gmt":"2021-12-08T14:06:15","slug":"flex-end-overflow","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2021\/12\/flex-end-overflow\/","title":{"rendered":"flex-end\u4e3a\u4ec0\u4e48overflow\u65e0\u6cd5\u6eda\u52a8\u53ca\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=10220\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=10220<\/a> \u946b\u7a7a\u95f4-\u946b\u751f\u6d3b<br \/>\n\u672c\u6587\u6b22\u8fce\u5206\u4eab\u4e0e\u805a\u5408\uff0c\u5168\u6587\u8f6c\u8f7d\u5c31\u4e0d\u5fc5\u4e86\uff0c\u5c0a\u91cd\u7248\u6743\uff0c\u82e5\u6025\u7528\u53ef\u4ee5\u8054\u7cfb\u6388\u6743\u3002<\/p>\n<p><script>window.wxShareImgUrl = 'https:\/\/www.zhangxinxu.com\/study\/image\/share\/202112-flex-end.jpg';if(!\/zhangxinxu\/.test(location.host)){document.body.addEventListener('mousedown',function(){location.href='https:\/\/www.zhangxinxu.com\/wordpress\/?p=10220'});}<\/script><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202112\/flex-end-overflow.jpg\" width=\"478\" height=\"300\" alt=\"flex-end\u4e0eoverflow\" class=\"alignright clip thumb size-medium\" \/><\/p>\n<h3>\u4e00\u3001\u95ee\u9898\u63cf\u8ff0<\/h3>\n<p>\u5728 flex \u5e03\u5c40\u4e2d\uff0c\u5982\u679c\u6574\u4f53\u5217\u8868\u9879\u5143\u7d20\u7684\u5bf9\u9f50\u65b9\u5f0f\u662f flex-end\uff0c\u5219\u5f53\u91cc\u9762\u7684\u5185\u5bb9\u8d85\u8fc7\u5bb9\u5668\u7684\u65f6\u5019\uff0c\u5373\u4f7f\u5bb9\u5668\u8bbe\u7f6e\u4e86 <code>overflow:auto<\/code> \u4e5f\u662f\u65e0\u6cd5\u6709\u6eda\u52a8\u6548\u679c\u7684\u3002<\/p>\n<p>\u6bd4\u65b9\u8bf4\u4e0b\u9762\u8fd9\u4e2a\u4f8b\u5b50\uff0c\u6709\u4e00\u4e2a\u5bb9\u5668\uff0c\u5bb9\u5668\u4e2d\u6709\u5f88\u591a\u5217\u8868\uff0c\u5217\u8868\u6709\u591a\u6709\u5c11\u4e0d\u786e\u5b9a\uff0c\u7136\u540e\u5217\u8868\u5c45\u5e95\u5bf9\u9f50\uff0c\u5185\u5bb9\u591a\u7684\u65f6\u5019\u53ef\u4ee5\u6eda\u52a8\u3002<\/p>\n<p>\u8fd9\u4e2a\u65f6\u5019\u5f88\u5bb9\u5668\u60f3\u5230\u4f7f\u7528 flex \u5e03\u5c40\u5b9e\u73b0\uff0c\u56e0\u4e3a DOM \u7ed3\u6784\u53ef\u4ee5\u5f88\u7b80\u6d01\uff0c\u5916\u90e8\u5bb9\u5668\uff0c\u91cc\u9762\u5b50\u9879\u76ee\u5373\u53ef\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;div class=\"container\"&gt;\r\n    &lt;item&gt;\u5217\u88681&lt;\/item&gt;\r\n    &lt;item&gt;\u5217\u88682&lt;\/item&gt;\r\n    &lt;item&gt;\u5217\u88683&lt;\/item&gt;\r\n&lt;\/div&gt;<\/pre>\n<pre>.container {\r\n    display: flex;\r\n    height: 200px; width: 250px;\r\n    flex-direction: column;\r\n    justify-content: flex-end;\r\n    background-color: rgba(0,0,0,.75);\r\n    gap: 1px;\r\n    border: 1px solid;\r\n    overflow: auto;\r\n}\r\n.container item {\r\n    padding: .5rem 1rem;\r\n    background-color: #fff;\r\n    flex: none;\r\n}<\/pre>\n<style>\n.container {\n    display: flex;\n    height: 200px; width: 250px;\n    flex-direction: column;\n    justify-content: flex-end;\n    background-color: rgba(0,0,0,.75);\n    gap: 1px;\n    border: 1px solid;\n    overflow: auto;\n}\n.container item {\n    padding: .5rem 1rem;\n    background-color: #fff;\n    flex: none;\n}\n<\/style>\n<p>\u5b9e\u65f6\u6e32\u67d3\u6548\u679c\u5982\u4e0b\u6240\u793a\uff1a               <\/p>\n<div class=\"container\">\n    <item>\u5217\u88681<\/item><item>\u5217\u88682<\/item><item>\u5217\u88683<\/item>\n<\/div>\n<p>\u53ef\u4ee5\u770b\u5230\u6548\u679c\u826f\u597d\uff0c\u7b26\u5408\u9884\u671f\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u5982\u679c\u5217\u8868\u9879\u5f88\u591a\uff0c\u6bd4\u65b9\u8bf4\u67097\u98798\u9879\u8fd9\u6837\u5b50\u7684\uff1a<\/p>\n<pre>&lt;div class=\"container\"&gt;\r\n    &lt;item&gt;\u5217\u88681&lt;\/item&gt;\r\n    &lt;item&gt;\u5217\u88682&lt;\/item&gt;\r\n    &lt;item&gt;\u5217\u88683&lt;\/item&gt;\r\n    &lt;item&gt;\u5217\u88684&lt;\/item&gt;\r\n    &lt;item&gt;\u5217\u88685&lt;\/item&gt;\r\n    &lt;item&gt;\u5217\u88686&lt;\/item&gt;\r\n    &lt;item&gt;\u5217\u88687&lt;\/item&gt;\r\n    &lt;item&gt;\u5217\u88688&lt;\/item&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>\u5c31\u4f1a\u53d1\u73b0\u524d\u51e0\u9879\u770b\u4e0d\u89c1\u4e86\uff0c\u800c\u4e14\u65e0\u6cd5\u6eda\u52a8\uff0c\u660e\u660e\u5bb9\u5668\u8bbe\u7f6e\u4e86 <code>overflow:auto<\/code>\uff0c\u5b50\u5143\u7d20\u7684\u5185\u5bb9\u9ad8\u5ea6\u4e5f\u6ea2\u51fa\u4e86\u5bb9\u5668\uff0c\u4e3a\u4ec0\u4e48\u65e0\u6cd5\u6eda\u52a8\u5462\uff1f<\/p>\n<div class=\"container\">\n    <item>\u5217\u88681<\/item><item>\u5217\u88682<\/item><item>\u5217\u88683<\/item><item>\u5217\u88684<\/item><item>\u5217\u88685<\/item><item>\u5217\u88686<\/item><item>\u5217\u88687<\/item><item>\u5217\u88688<\/item>\n<\/div>\n<p>\u5f88\u591a\u4eba\u5c31\u4e0d\u592a\u660e\u767d\u4e3a\u4ec0\u4e48\u4f1a\u8fd9\u6837\u8868\u73b0\uff0c\u8fd9\u91cc\u7ed9\u5927\u5bb6\u89e3\u91ca\u4e0b\u539f\u56e0\uff0c\u5176\u5b9e\u5e76\u4e0d\u96be\u7406\u89e3\u3002<\/p>\n<h3>\u4e8c\u3001flex-end \u5bf9\u9f50\u65e0\u6cd5\u6eda\u52a8\u539f\u56e0<\/h3>\n<p>\u662f\u8fd9\u6837\u7684\uff0c\u5728 Web \u7f51\u9875\u4e2d\uff0c\u6eda\u52a8\u6761\u51fa\u73b0\u662f\u6709\u65b9\u5411\u6027\u7684\u8981\u6c42\u7684\uff0c\u7531\u4e8e\u5168\u4e16\u754c\u6d4f\u89c8\u6587\u5b57\uff0c\u6216\u8005\u8bf4\u9605\u8bfb\u4fe1\u606f\u90fd\u662f\u4ece\u4e0a\u5f80\u4e0b\u5f00\u59cb\u7684\uff0c\u56e0\u6b64\uff0c\u6eda\u52a8\u6761\u7684\u6eda\u52a8\u4e5f\u662f\u4ece\u4e0a\u5f80\u4e0b\u3002<\/p>\n<p>\u6240\u4ee5\u6eda\u52a8\u6761\u5728\u8bbe\u8ba1\u7684\u65f6\u5019\uff0c\u5c31\u7ea6\u5b9a\u4e86\uff0c\u53ea\u6709\u5bb9\u5668\u4e0b\u65b9\uff08\u6216\u53f3\u4fa7\uff09\u5185\u5bb9\u6709\u591a\u4f59\uff0c\u624d\u9700\u8981\u6eda\u52a8\uff0c\u56e0\u4e3a\u4e0d\u53ef\u80fd\u8bf4\u540e\u7eed\u7684\u9605\u8bfb\u4fe1\u606f\u5728\u9605\u8bfb\u8d77\u70b9\u7684\u4e0a\u9762\uff0c\u8fd9\u4e0d\u7b26\u5408\u771f\u5b9e\u4e16\u754c\u7684\u9605\u8bfb\u903b\u8f91\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u8fd9\u5c31\u5bfc\u81f4\uff0c\u5982\u679c\u6709\u5185\u5bb9\u662f\u5728\u4e0a\u65b9\u6216\u5de6\u4fa7\u8d85\u8fc7\u5bb9\u5668\u7684\u5c3a\u5bf8\u9650\u5236\uff0c\u6eda\u52a8\u6761\u662f\u4e0d\u4f1a\u6709\u4efb\u4f55\u53d8\u5316\u7684\u3002<\/p>\n<p>\u8fd9\u6837\u7684\u73b0\u8c61\u5176\u5b9e\u5927\u5bb6\u5e94\u8be5\u90fd\u9047\u5230\u8fc7\uff0c\u90a3\u5c31\u662f\u7edd\u5bf9\u5b9a\u4f4d\u9690\u85cf\u53ea\u80fd\u8bbe\u7f6e\u4e00\u4e2a\u5927\u5927\u7684\u8d1f\u503c\uff0c\u4f46\u662f\u4e0d\u80fd\u8bbe\u7f6e\u4e00\u4e2a\u5927\u5927\u7684\u6b63\u503c\u3002<\/p>\n<pre>.absolute-out {\r\n    position: absolute;\r\n    left: -999px; top: -999px;\r\n}<\/pre>\n<p>\u4f46\u662f\u5982\u679c\u662f\u8d85\u51fa\u5c4f\u5e55\u4ee5\u5916\u7684\u6b63\u503c\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>.absolute-out {\r\n    position: absolute;\r\n    left: 150vw; top: 9999rem;\r\n}<\/pre>\n<p>\u5219\u5c31\u4e0d\u884c\uff0c\u56e0\u4e3a\u6b64\u65f6\u9875\u9762\u4f1a\u51fa\u73b0\u6eda\u52a8\u6761\u3002<\/p>\n<p>\u6bd4\u65b9\u8bf4\u4e0b\u9762\u8fd9\u4e2ademo\uff0c\u5bb9\u5668\u91cc\u9762\u4e00\u4e2a\u65b9\u76d2\u5b50\uff0c\u62d6\u52a8\u5b83\uff0c\u4f60\u4f1a\u53d1\u73b0\uff0c\u5982\u679c\u76d2\u5b50\u5728\u5bb9\u5668\u5de6\u4fa7\u6216\u4e0a\u65b9\uff0c\u4e0d\u4f1a\u6709\u6eda\u52a8\u6761\uff0c\u4f46\u662f\u5982\u679c\u662f\u8d85\u8fc7\u53f3\u4fa7\u6216\u5e95\u90e8\uff0c\u5219\u4f1a\u51fa\u73b0\u6eda\u52a8\u6761\u3002<\/p>\n<div id=\"scrollBox\" style=\"max-width: 300px; height:250px; outline: 1px solid; background-color: #f5f5f5; position: relative; overflow: auto;\">\n<div id=\"dragTarget\" style=\"width: 80px; height: 80px; background-color: #a0b3d6; position: absolute;\"><\/div>\n<\/div>\n<p><script src=\"https:\/\/www.zhangxinxu.com\/study\/202112\/zxxDrag.js\"><\/script><br \/>\n<script>\nzxxDrag(dragTarget,{ bounding: scrollBox, edgeLock: false });\n<\/script><\/p>\n<h4>flex-end\u662f\u53cd\u5411\u6ea2\u51fa<\/h4>\n<p>\u56de\u5230\u672c\u6587\u8fd9\u91cc\uff0cflex-end \u4e4b\u6240\u4ee5\u4e0d\u4f1a\u51fa\u73b0\u6eda\u52a8\u6761\uff0c\u5c31\u662f\u56e0\u4e3a\u91cc\u9762\u5185\u5bb9\u6ea2\u51fa\u5bb9\u5668\u7684\u65b9\u5411\u4e0d\u662f\u5728\u5bb9\u5668\u7684\u4e0b\u65b9\u6216\u8005\u53f3\u4fa7\uff0c\u800c\u662f\u5728\u5bb9\u5668\u7684\u9876\u90e8\u548c\u5de6\u4fa7\uff0c\u81ea\u7136\u5c31\u65e0\u6cd5\u89e6\u53d1\u6eda\u52a8\u6761\u7684\u51fa\u73b0\u3002<\/p>\n<p>\u6bd4\u65b9\u8bf4\u4e0b\u9762\u8fd9\u4e2a\u76d2\u6a21\u578b\u7ed3\u6784\u793a\u610f\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202112\/2021-12-03_212204.png\" width=\"513\" height=\"307\" alt=\"\u76d2\u6a21\u578b\u5b9a\u4f4d\u793a\u610f\"><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u6ea2\u51fa\u7684\u51e0\u4e2a\u5217\u8868\u7684\u4f4d\u7f6e\u662f\u5728\u5bb9\u5668\u7684\u4e0a\u65b9\u7684\uff0c\u6240\u4ee5\uff0c\u6ca1\u6709\u6eda\u52a8\u6761\uff0c\u81ea\u7136\u4e5f\u5c31\u6ca1\u6cd5\u6eda\u52a8\u4e86\u3002<\/p>\n<h3>\u4e09\u3001\u89e3\u51b3\u65b9\u6cd5<\/h3>\n<p>\u89e3\u51b3\u65b9\u6cd5\u5f88\u7b80\u5355\uff0c\u5bf9\u9f50\u65b9\u5f0f\u5f00\u59cb\u9ed8\u8ba4\u7684 flex \u5bf9\u9f50\uff0c\u7136\u540e\u4f7f\u7528\u540d\u4e0d\u89c1\u7ecf\u4f20\u7684 <code>margin: auto<\/code> \u5b9e\u73b0end\u5bf9\u9f50\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u5177\u4f53\u505a\u6cd5\u662f\u8bbe\u7f6e\u7b2c\u4e00\u4e2a\u5b50\u9879\u8bbe\u7f6e\u8d77\u59cb\u65b9\u5411\u7684 <code>margin<\/code> \u5c5e\u6027\u503c\u4e3a <code>auto<\/code>\u3002<\/p>\n<p>\u4ee3\u7801\u793a\u610f\uff1a<\/p>\n<pre>.container {\r\n    display: flex;\r\n    height: 200px; width: 250px;\r\n    flex-direction: column;\r\n    background-color: rgba(0,0,0,.75);\r\n    gap: 1px;\r\n    border: 1px solid;\r\n    overflow: auto;\r\n}\r\n.container item {\r\n    padding: .5rem 1rem;\r\n    background-color: #fff;\r\n    flex: none;\r\n}\r\n\/* \u8fd9\u91cc\u5904\u7406 *\/\r\n.container item:first-child {\r\n    margin-top: auto;\r\n}<\/pre>\n<p>\u5b9e\u65f6\u6548\u679c\u5982\u4e0b\uff08\u82e5\u65e0\u6548\u679c\uff0c\u8bf7\u8bbf\u95ee<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=10220\">\u539f\u6587\u5730\u5740<\/a>\uff09\uff0c\u70b9\u51fb\u4e0b\u9762\u7684\u6309\u94ae\uff0c\u52a8\u6001\u6dfb\u52a0\u5217\u8868\u9879\uff0c\u53ef\u4ee5\u770b\u5230\uff0c\u968f\u7740\u5217\u8868\u9879\u589e\u591a\uff0c\u5217\u8868\u6574\u4f53\u4e00\u76f4\u5728\u5e95\u90e8\uff0c\u540c\u65f6\u6570\u91cf\u8d85\u8fc7\u5bb9\u5668\u9ad8\u5ea6\u7684\u65f6\u5019\uff0c\u4f1a\u51fa\u73b0\u6eda\u52a8\u6761\uff0c\u53ef\u4ee5\u6eda\u52a8\u3002<\/p>\n<p><button id=\"btnNewItem\" style=\"width: 180px; height:40px;\">\u6309\u94ae-\u65b0\u589e\u5217\u8868\u9879<\/button> <button id=\"btnReset\" style=\" height:40px;\">\u91cd\u7f6e<\/button><\/p>\n<div id=\"container2\" class=\"container2\"><item>\u5217\u8868<\/item><item>\u5217\u8868<\/item><item>\u5217\u8868<\/item><\/div>\n<style>.container2 {display: flex; height: 200px; width: 250px; flex-direction: column; background-color: rgba(0,0,0,.75); gap: 1px; border: 1px solid; overflow: auto; counter-reset: indexItem;}.container2 item { padding: .5rem 1rem; background-color: #fff; flex: none; counter-increment: indexItem;}.container2 item:first-child {margin-top: auto;}.container2 item::after{content: counter(indexItem);}<\/style>\n<p><script>document.querySelector('#btnNewItem').addEventListener('click', function () { container2.insertAdjacentHTML('beforeend', '<item>\u5217\u8868<\/item>'); });document.querySelector('#btnReset').addEventListener('click', function () { container2.innerHTML='<item>\u5217\u8868<\/item><item>\u5217\u8868<\/item><item>\u5217\u8868<\/item>'});<\/script><\/p>\n<p>\u7c7b\u4f3c\u7684\uff0c\u5982\u679c\u662f\u6c34\u5e73\u5217\u8868\uff0c\u5219\u53ef\u4ee5\u8bbe\u7f6e <code>margin-left:auto<\/code>\u3002<\/p>\n<p>\u81f3\u4e8e <code>margin:auto<\/code> \u4e3a\u4f55\u53ef\u4ee5\u5b9e\u73b0\u5e95\u90e8\u5bf9\u9f50\u6548\u679c\uff0c\u5728 \u300aCSS\u4e16\u754c\u300b margin:auto \u90a3\u90e8\u5206\u662f\u6709\u4e13\u95e8\u4ecb\u7ecd\u7684\uff0c\u5728 \u300aCSS\u65b0\u4e16\u754c\u300b flex\u5e03\u5c40\u8fd9\u4e2a\u7ae0\u8282\u4e5f\u6709\u6240\u63d0\u53ca\uff0c\u8fd9\u91cc\u4e0d\u5177\u4f53\u5c55\u5f00\uff0c\u5927\u5bb6\u53ef\u4ee5\u81ea\u884c\u67e5\u9605\u3002<\/p>\n<h3>\u56db\u3001\u7ed3\u8bed<\/h3>\n<p>\u6700\u8fd1\u5e72\u6d3b\u9047\u5230\u7c7b\u4f3c\u7684\u573a\u666f\uff0c\u7136\u540e\u60f3\u8d77\u6765\u4e4b\u524d\u6709\u4eba\u95ee\u8fc7\u6211\u7c7b\u4f3c\u7684\u95ee\u9898\uff0c\u8bf4\u660e\u8bf4\u660e\u9047\u5230\u7c7b\u4f3c\u95ee\u9898\u7684\u4eba\u5e94\u8be5\u4e0d\u6b62\u6211\u4e00\u4e2a\uff0c\u6240\u4ee5\u4e13\u95e8\u5c31\u5199\u4e86\u8fd9\u7bc7\u6587\u7ae0\uff0c\u5e0c\u671b\u53ef\u4ee5\u5e2e\u5230\u5927\u5bb6\u3002<\/p>\n<p>\u5176\u4ed6\u5c31\u6ca1\u6709\u4ec0\u4e48\u597d\u8bf4\u7684\u5566\uff0c\u4e0a\u5468\u672b\u53bb\u6df1\u5733\u53c2\u52a0\u4e86GMTC\u5168\u7403\u524d\u7aef\u5f00\u53d1\u8005\u5927\u4f1a\uff0c\u505a\u4e86\u4e2a\u5173\u4e8e\u7528\u6237\u4f53\u9a8c\u7684\u4e3b\u9898\u5206\u4eab\uff0c\u5982\u679c\u6ca1\u6709\u5728\u73b0\u573a\u6216\u8005\u6ca1\u6709\u770b\u76f4\u64ad\u7684\u4eba\uff0c\u53ef\u4ee5\u5173\u6ce8InfoQ\uff0c\u5e94\u8be5\u8fc7\u4e00\u6bb5\u65f6\u95f4\u4f1a\u653e\u51fa\u89c6\u9891\u3002<\/p>\n<p>\u4e0b\u56fe\u662f\u73b0\u573a\u98ce\u91c7\uff08\u53bb\u4e4b\u524d\u4e13\u95e8\u8ba9\u5bb6\u91cc\u7684\u9886\u5bfc\u7406\u4e86\u4e2a\u53d1\uff09\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202112\/my-share-s.jpg\" width=\"400\" height=\"286\" alt=\"\u5927\u4f1a\u73b0\u573a\u7167\u7247\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u597d\uff0c\u4ee5\u4e0a\u5c31\u662f\u672c\u6587\u5168\u90e8\u5185\u5bb9\uff0c\u6b22\u8fce\u8f6c\u53d1\uff0c\u6b22\u8fce\u5206\u4eab\uff01\u5982\u679c\u662f\u5728\u684c\u9762\u7aef\u7f51\u9875\u8bbf\u95ee\u7684\u8bdd\uff0c\u5206\u4eab\u6309\u94ae\u5728\u6587\u7ae0\u7684\u5de6\u4fa7\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/1f618.svg\" width=\"20\" height=\"20\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u6b22\u8fce\u5206\u4eab\uff0c\u52ff\u5168\u6587\u8f6c\u8f7d\uff0c\u5982\u679c\u5b9e\u5728\u559c\u6b22\uff0c\u53ef\u6536\u85cf\uff0c\u6c38\u4e0d\u8fc7\u671f\uff0c\u4e14\u4f1a\u53ca\u65f6\u66f4\u65b0\u77e5\u8bc6\u70b9\u53ca\u4fee\u6b63\u9519\u8bef\uff0c\u9605\u8bfb\u4f53\u9a8c\u4e5f\u66f4\u597d\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=10220\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=10220<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202112\/flex-end-overflow.jpg\" width=\"160\" height=\"100\" alt=\"flex-end\u4e0eoverflow\" class=\"alignright size-medium\" loading=\"lazy\" \/><\/p>\n<p>\u89e3\u91ca\u4e0b\u4e3a\u4f55 flex \u5e03\u5c40\u4e2d\uff0c flex-end \u5bf9\u9f50\u4e0d\u4f1a\u89e6\u53d1 overflow \u6eda\u52a8\u6548\u679c\uff0c\u4ee5\u53ca\u4ecb\u7ecd\u89e3\u51b3\u65b9\u6cd5\uff0c\u5e0c\u671b\u53ef\u4ee5\u5e2e\u5230\u9047\u5230\u7c7b\u4f3c\u573a\u666f\u7684\u4eba\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1271,1335,1802,1515,1339,992,124],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/10220"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=10220"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/10220\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=10220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=10220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=10220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}