{"id":626,"date":"2021-10-12T16:58:18","date_gmt":"2021-10-12T08:58:18","guid":{"rendered":"https:\/\/log.tanxiaodian.com\/?p=626"},"modified":"2021-10-12T16:58:18","modified_gmt":"2021-10-12T08:58:18","slug":"%e5%ae%9e%e7%8e%b0%e4%b8%89%e6%a0%8f%e5%b8%83%e5%b1%80%e7%9a%84%e5%87%a0%e7%a7%8d%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/log.tanxiaodian.com\/?p=626","title":{"rendered":"\u5b9e\u73b0\u4e09\u680f\u5e03\u5c40\u7684\u51e0\u79cd\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u8f6c\u81ea: <a href=\"https:\/\/github.com\/ljianshu\/Blog\/issues\/14\">\u5b9e\u73b0\u4e09\u680f\u5e03\u5c40\u7684\u51e0\u79cd\u65b9\u6cd5 \u00b7 Issue #14 \u00b7 ljianshu\/Blog \u00b7 GitHub<\/a><\/p>\n\n\n\n<p><strong>\u4e09\u680f\u5e03\u5c40\uff0c\u987e\u540d\u601d\u4e49\u5c31\u662f\u4e24\u8fb9\u56fa\u5b9a\uff0c\u4e2d\u95f4\u81ea\u9002\u5e94<\/strong>\u3002\u4e09\u680f\u5e03\u5c40\u5728\u5b9e\u9645\u7684\u5f00\u53d1\u5341\u5206\u5e38\u89c1\uff0c\u6bd4\u5982\u6dd8\u5b9d\u7f51\u7684\u9996\u9875\uff0c\u5c31\u662f\u4e2a\u5178\u578b\u7684\u4e09\u680f\u5e03\u5c40\uff1a\u5373\u5de6\u8fb9\u5546\u54c1\u5bfc\u822a\u548c\u53f3\u8fb9\u5bfc\u822a\u56fa\u5b9a\u5bbd\u5ea6\uff0c\u4e2d\u95f4\u7684\u4e3b\u8981\u5185\u5bb9\u968f\u6d4f\u89c8\u5668\u5bbd\u5ea6\u81ea\u9002\u5e94\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/camo.githubusercontent.com\/00db9a9eff1ed13879d3f4890a0ab86e359e55da8e90e5f77a3bce2a95b43f1e\/68747470733a2f2f757365722d676f6c642d63646e2e786974752e696f2f323031382f392f31362f313635653262336439613233633939343f773d3132383026683d34393826663d706e6726733d343539313933\" target=\"_blank\" rel=\"noreferrer noopener\"><img src=\"https:\/\/camo.githubusercontent.com\/00db9a9eff1ed13879d3f4890a0ab86e359e55da8e90e5f77a3bce2a95b43f1e\/68747470733a2f2f757365722d676f6c642d63646e2e786974752e696f2f323031382f392f31362f313635653262336439613233633939343f773d3132383026683d34393826663d706e6726733d343539313933\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>\u6211\u4eec\u4e0d\u59a8\u5047\u5b9a\u8fd9\u6837\u4e00\u4e2a\u5e03\u5c40\uff1a\u9ad8\u5ea6\u5df2\u77e5\uff0c\u5176\u4e2d\u5de6\u680f\u3001\u53f3\u680f\u5bbd\u5ea6\u5404\u4e3a300px,\u4e2d\u95f4\u81ea\u9002\u5e94\uff0c\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\uff1f\u4ee5\u53ca\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48\uff1f<\/p>\n\n\n\n<p>\u672c\u6587\u6e90\u4ee3\u7801\u8bf7\u731b\u6233<a href=\"https:\/\/github.com\/ljianshu\/Blog\/tree\/master\/%E4%B8%89%E6%A0%8F%E5%B8%83%E5%B1%80\">\u4e09\u680f\u5e03\u5c40\u6e90\u7801<\/a>\uff0c\u6b22\u8fcestar\u548cfork<br><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/camo.githubusercontent.com\/4cfc8a612734264b37960e62da14f35c9c4065ba1b45d58627498d86462c2da1\/68747470733a2f2f757365722d676f6c642d63646e2e786974752e696f2f323031382f392f31362f313635653263343033333365326631363f773d36343526683d33313826663d706e6726733d3138373636\"><\/a><\/p>\n\n\n\n<h2>\u4e00\u3001\u6d6e\u52a8\u5e03\u5c40<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n    &lt;meta charset=\"utf-8\"&gt;\n    &lt;title&gt;Layout&lt;\/title&gt;\n    &lt;style media=\"screen\"&gt;\n        html * {\n            padding: 0;\n            margin: 0;\n        }\n        .layout article div {\n            min-height: 150px;\n        }\n    &lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;!--\u6d6e\u52a8\u5e03\u5c40  --&gt;\n    &lt;section class=\"layout float\"&gt;\n        &lt;style media=\"screen\"&gt;\n            .layout.float .left {\n                float: left;\n                width: 300px;\n                background: red;\n            }\n            .layout.float .center {\n                background: yellow;\n            }\n            .layout.float .right {\n                float: right;\n                width: 300px;\n                background: blue;\n            }\n        &lt;\/style&gt;\n        &lt;h1&gt;\u4e09\u680f\u5e03\u5c40&lt;\/h1&gt;\n        &lt;article class=\"left-right-center\"&gt;\n            &lt;div class=\"left\"&gt;&lt;\/div&gt;\n            &lt;div class=\"right\"&gt;&lt;\/div&gt; \/\/ \u53f3\u680f\u90e8\u5206\u8981\u5199\u5728\u4e2d\u95f4\u5185\u5bb9\u4e4b\u524d\n            &lt;div class=\"center\"&gt;\n                &lt;h2&gt;\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848&lt;\/h2&gt;\n                1.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 2.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 3.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 4.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 5.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 6.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b\n            &lt;\/div&gt;\n        &lt;\/article&gt;\n    &lt;\/section&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n\n\n\n<p><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/camo.githubusercontent.com\/2da50facdeaacc0d2ae9cdea2b9e655078d9adc319a8b9e8186d7a1be7a7587b\/68747470733a2f2f757365722d676f6c642d63646e2e786974752e696f2f323031382f392f31362f31363565326533303632373430653066\"><\/a><br>\u8fd9\u79cd\u5e03\u5c40\u65b9\u5f0f\uff0cdom\u7ed3\u6784\u5fc5\u987b\u662f\u5148\u5199\u6d6e\u52a8\u90e8\u5206\uff0c\u7136\u540e\u518d\u4e2d\u95f4\u5757\uff0c\u5426\u5219\u53f3\u6d6e\u52a8\u5757\u4f1a\u6389\u5230\u4e0b\u4e00\u884c\u3002<br><strong>\u6d6e\u52a8\u5e03\u5c40\u7684\u4f18\u70b9\u5c31\u662f\u6bd4\u8f83\u7b80\u5355\uff0c\u517c\u5bb9\u6027\u4e5f\u6bd4\u8f83\u597d\u3002\u4f46\u6d6e\u52a8\u5e03\u5c40\u662f\u6709\u5c40\u9650\u6027\u7684\uff0c\u6d6e\u52a8\u5143\u7d20\u8131\u79bb\u6587\u6863\u6d41\uff0c\u8981\u505a\u6e05\u9664\u6d6e\u52a8\uff0c\u8fd9\u4e2a\u5904\u7406\u4e0d\u597d\u7684\u8bdd\uff0c\u4f1a\u5e26\u6765\u5f88\u591a\u95ee\u9898\uff0c\u6bd4\u5982\u7236\u5bb9\u5668\u9ad8\u5ea6\u584c\u9677\u7b49<\/strong>\u3002<\/p>\n\n\n\n<h2>\u4e8c\u3001\u7edd\u5bf9\u5e03\u5c40<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>   &lt;!--\u7edd\u5bf9\u5e03\u5c40  --&gt;\n    &lt;section class=\"layout absolute\"&gt;\n        &lt;style&gt;\n            .layout.absolute .left-center-right&gt;div{\n                position: absolute;\/\/\u4e09\u5757\u90fd\u662f\u7edd\u5bf9\u5b9a\u4f4d\n            }\n            .layout.absolute .left {\n                left:0;\n                width: 300px;\n                background: red;\n            }\n            .layout.absolute .center {\n                right: 300px;\n                left: 300px;\/\/\u79bb\u5de6\u53f3\u5404\u4e09\u767e\n                background: yellow;\n            }\n            .layout.absolute .right {\n                right: 0;\n                width: 300px;\n                background: blue;\n            }\n        &lt;\/style&gt;\n        &lt;h1&gt;\u4e09\u680f\u5e03\u5c40&lt;\/h1&gt;\n        &lt;article class=\"left-center-right\"&gt;\n            &lt;div class=\"left\"&gt;&lt;\/div&gt;\n            &lt;div class=\"center\"&gt;\n                &lt;h2&gt;\u7edd\u5bf9\u5b9a\u4f4d\u89e3\u51b3\u65b9\u6848&lt;\/h2&gt;\n                1.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 2.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 3.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 4.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 5.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 6.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b\n            &lt;\/div&gt;\n            &lt;div class=\"right\"&gt;&lt;\/div&gt;\n        &lt;\/article&gt;\n    &lt;\/section&gt;\n<\/code><\/pre>\n\n\n\n<p><strong>\u7edd\u5bf9\u5b9a\u4f4d\u5e03\u5c40\u4f18\u70b9\u5c31\u662f\u5feb\u6377\uff0c\u8bbe\u7f6e\u5f88\u65b9\u4fbf\uff0c\u800c\u4e14\u4e5f\u4e0d\u5bb9\u6613\u51fa\u95ee\u9898\u3002\u7f3a\u70b9\u5c31\u662f\uff0c\u5bb9\u5668\u8131\u79bb\u4e86\u6587\u6863\u6d41\uff0c\u540e\u4ee3\u5143\u7d20\u4e5f\u8131\u79bb\u4e86\u6587\u6863\u6d41\uff0c\u9ad8\u5ea6\u672a\u77e5\u7684\u65f6\u5019\uff0c\u4f1a\u6709\u95ee\u9898\uff0c\u8fd9\u5c31\u5bfc\u81f4\u4e86\u8fd9\u79cd\u65b9\u6cd5\u7684\u6709\u6548\u6027\u548c\u53ef\u4f7f\u7528\u6027\u662f\u6bd4\u8f83\u5dee\u7684\u3002<\/strong><\/p>\n\n\n\n<h2>\u4e09\u3001flexbox\u5e03\u5c40<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>    &lt;!--flexbox\u5e03\u5c40--&gt;\n    &lt;section class=\"layout flexbox\"&gt;\n        &lt;style&gt;\n            .layout.flexbox .left-center-right{\n                display: flex;\n            }\n            .layout.flexbox .left {\n                width: 300px;\n                background: red;\n            }\n            .layout.flexbox .center {\n                background: yellow;\n                flex: 1;\n            }\n            .layout.flexbox .right {\n                width: 300px;\n                background: blue;\n            }\n        &lt;\/style&gt;\n        &lt;h1&gt;\u4e09\u680f\u5e03\u5c40&lt;\/h1&gt;\n        &lt;article class=\"left-center-right\"&gt;\n            &lt;div class=\"left\"&gt;&lt;\/div&gt;\n            &lt;div class=\"center\"&gt;\n                &lt;h2&gt;flexbox\u89e3\u51b3\u65b9\u6848&lt;\/h2&gt;\n                1.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 2.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 3.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 4.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 5.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 6.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b\n            &lt;\/div&gt;\n            &lt;div class=\"right\"&gt;&lt;\/div&gt;\n        &lt;\/article&gt;\n    &lt;\/section&gt;\n<\/code><\/pre>\n\n\n\n<p><strong>flexbox\u5e03\u5c40\u662fcss3\u91cc\u65b0\u51fa\u7684\u4e00\u4e2a\uff0c\u5b83\u5c31\u662f\u4e3a\u4e86\u89e3\u51b3\u4e0a\u8ff0\u4e24\u79cd\u65b9\u5f0f\u7684\u4e0d\u8db3\u51fa\u73b0\u7684\uff0c\u662f\u6bd4\u8f83\u5b8c\u7f8e\u7684\u4e00\u4e2a\u3002\u76ee\u524d\u79fb\u52a8\u7aef\u7684\u5e03\u5c40\u4e5f\u90fd\u662f\u7528flexbox\u3002 flexbox\u7684\u7f3a\u70b9\u5c31\u662fIE10\u5f00\u59cb\u652f\u6301\uff0c\u4f46\u662fIE10\u7684\u662f-ms\u5f62\u5f0f\u7684\u3002<\/strong><\/p>\n\n\n\n<h2>\u56db\u3001\u8868\u683c\u5e03\u5c40<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--\u8868\u683c\u5e03\u5c40--&gt;\n    &lt;section class=\"layout table\"&gt;\n        &lt;style&gt;\n            .layout.table .left-center-right {\n                display: table;\n                height: 150px;\n                width: 100%;\n            }\n            .layout.table .left-center-right&gt;div {\n                display: table-cell;\n            }\n            .layout.table .left {\n                width: 300px;\n                background: red;\n            }\n            .layout.table .center {\n                background: yellow;\n            }\n            .layout.table .right {\n                width: 300px;\n                background: blue;\n            }\n        &lt;\/style&gt;\n        &lt;h1&gt;\u4e09\u680f\u5e03\u5c40&lt;\/h1&gt;\n        &lt;article class=\"left-center-right\"&gt;\n            &lt;div class=\"left\"&gt;&lt;\/div&gt;\n            &lt;div class=\"center\"&gt;\n                &lt;h2&gt;\u8868\u683c\u5e03\u5c40\u89e3\u51b3\u65b9\u6848&lt;\/h2&gt;\n                1.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 2.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 3.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 4.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 5.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 6.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b\n            &lt;\/div&gt;\n            &lt;div class=\"right\"&gt;&lt;\/div&gt;\n        &lt;\/article&gt;\n    &lt;\/section&gt;\n<\/code><\/pre>\n\n\n\n<p><strong>\u8868\u683c\u5e03\u5c40\u7684\u517c\u5bb9\u6027\u5f88\u597d(\u89c1\u4e0b\u56fe)\uff0c\u5728flex\u5e03\u5c40\u4e0d\u517c\u5bb9\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u8868\u683c\u5e03\u5c40\u3002\u5f53\u5185\u5bb9\u6ea2\u51fa\u65f6\u4f1a\u81ea\u52a8\u6491\u5f00\u7236\u5143\u7d20<\/strong>\u3002<\/p>\n\n\n\n<p><strong>\u8868\u683c\u5e03\u5c40\u4e5f\u662f\u6709\u7f3a\u9677:\u2460\u65e0\u6cd5\u8bbe\u7f6e\u680f\u8fb9\u8ddd\uff1b\u2461\u5bf9seo\u4e0d\u53cb\u597d\uff1b\u2462\u5f53\u5176\u4e2d\u4e00\u4e2a\u5355\u5143\u683c\u9ad8\u5ea6\u8d85\u51fa\u7684\u65f6\u5019\uff0c\u4e24\u4fa7\u7684\u5355\u5143\u683c\u4e5f\u662f\u4f1a\u8ddf\u7740\u4e00\u8d77\u53d8\u9ad8\u7684\uff0c\u7136\u800c\u6709\u65f6\u5019\u8fd9\u5e76\u4e0d\u662f\u6211\u4eec\u60f3\u8981\u7684\u6548\u679c\u3002<\/strong><br><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/camo.githubusercontent.com\/34b6638b861bcf64a677fbacaf5f4fa6174255546cfeec84b723a9cbed79d09a\/68747470733a2f2f757365722d676f6c642d63646e2e786974752e696f2f323031382f392f31372f313635653737646136653163656463663f773d3131343326683d34393126663d706e6726733d3731353139\"><\/a><\/p>\n\n\n\n<h2>\u4e94\u3001\u7f51\u683c\u5e03\u5c40<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>    &lt;!--\u7f51\u683c\u5e03\u5c40--&gt;\n    &lt;section class=\"layout grid\"&gt;\n        &lt;style&gt;\n            .layout.grid .left-center-right {\n                display: grid;\n                width: 100%;\n                grid-template-columns: 300px auto 300px;\n                grid-template-rows: 150px;\/\/\u884c\u9ad8\n            }\n            .layout.grid .left {\n                background: red;\n            }\n            .layout.grid .center {\n                background: yellow;\n            }\n            .layout.grid .right {\n                background: blue;\n            }\n        &lt;\/style&gt;\n        &lt;h1&gt;\u4e09\u680f\u5e03\u5c40&lt;\/h1&gt;\n        &lt;article class=\"left-center-right\"&gt;\n            &lt;div class=\"left\"&gt;&lt;\/div&gt;\n            &lt;div class=\"center\"&gt;\n                &lt;h2&gt;\u7f51\u683c\u5e03\u5c40\u89e3\u51b3\u65b9\u6848&lt;\/h2&gt;\n                1.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 2.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 3.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 4.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 5.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b 6.\u8fd9\u662f\u4e09\u680f\u5e03\u5c40\u7684\u6d6e\u52a8\u89e3\u51b3\u65b9\u6848\uff1b\n            &lt;\/div&gt;\n            &lt;div class=\"right\"&gt;&lt;\/div&gt;\n        &lt;\/article&gt;\n    &lt;\/section&gt;\n<\/code><\/pre>\n\n\n\n<p><strong>CSS Grid\u662f\u521b\u5efa\u7f51\u683c\u5e03\u5c40\u6700\u5f3a\u5927\u548c\u6700\u7b80\u5355\u7684\u5de5\u5177\u3002\u5c31\u50cf\u8868\u683c\u4e00\u6837\uff0c\u7f51\u683c\u5e03\u5c40\u53ef\u4ee5\u8ba9Web\u8bbe\u8ba1\u5e08\u6839\u636e\u5143\u7d20\u6309\u5217\u6216\u884c\u5bf9\u9f50\u6392\u5217\uff0c\u4f46\u4ed6\u548c\u8868\u683c\u4e0d\u540c\uff0c\u7f51\u683c\u5e03\u5c40\u6ca1\u6709\u5185\u5bb9\u7ed3\u6784\uff0c\u4ece\u800c\u4f7f\u5404\u79cd\u5e03\u5c40\u4e0d\u53ef\u80fd\u4e0e\u8868\u683c\u4e00\u6837\u3002\u4f8b\u5982\uff0c\u4e00\u4e2a\u7f51\u683c\u5e03\u5c40\u4e2d\u7684\u5b50\u5143\u7d20\u90fd\u53ef\u4ee5\u5b9a\u4f4d\u81ea\u5df1\u7684\u4f4d\u7f6e\uff0c\u8fd9\u6837\u4ed6\u4eec\u53ef\u4ee5\u91cd\u53e0\u548c\u7c7b\u4f3c\u5143\u7d20\u5b9a\u4f4d<\/strong>\u3002<\/p>\n\n\n\n<p><strong>\u4f46\u7f51\u683c\u5e03\u5c40\u7684\u517c\u5bb9\u6027\u4e0d\u597d\u3002IE10+\u4e0a\u652f\u6301\uff0c\u800c\u4e14\u4e5f\u4ec5\u652f\u6301\u90e8\u5206\u5c5e\u6027<\/strong>\u3002<\/p>\n\n\n\n<h2>\u516d\u3001\u603b\u7ed3<\/h2>\n\n\n\n<p>\u901a\u8fc7\u4e0a\u9762\u8be6\u7ec6\u4ecb\u7ecd\u4e94\u79cd\u5e03\u5c40\u7684\u4f18\u7f3a\u70b9\uff0c\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\u6700\u4f18\u9009\u62e9\u54ea\u79cd\u5e03\u5c40\uff1f\u76f8\u4fe1\u8bfb\u8005\u5fc3\u4e2d\u4f1a\u6709\u81ea\u5df1\u7684\u7b54\u6848\u3002<br>\u6211\u89c9\u5f97flex\u548cgrid\u5e03\u5c40\u5c31\u53ef\u4ee5\u641e\u5b9a\u5b9e\u9645\u5f00\u53d1\u4e2d\u7684\u5e03\u5c40\uff0c\u5047\u8bbe\u6d4f\u89c8\u5668\u90fd\u652f\u6301\u8fd9\u4e24\u4e2a\u6a21\u5757\uff0c\u4f60\u5c06\u9009\u62e9grid\u8fd8\u662fflexbox\u6765\u7ed9\u9875\u9762\u5e03\u5c40\uff1f<strong>flexbox\u662f\u4e00\u7ef4\u5e03\u5c40\uff0c\u4ed6\u53ea\u80fd\u5728\u4e00\u6761\u76f4\u7ebf\u4e0a\u653e\u7f6e\u4f60\u7684\u5185\u5bb9\u533a\u5757\uff1b\u800cgrid\u662f\u4e00\u4e2a\u4e8c\u7ef4\u5e03\u5c40\u3002\u524d\u9762\u4e5f\u7b80\u5355\u8bf4\u5230\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u4f60\u7684\u8bbe\u8ba1\u9700\u6c42\uff0c\u5c06\u5185\u5bb9\u533a\u5757\u653e\u7f6e\u5230\u4efb\u4f55\u4f60\u60f3\u8981\u653e\u7684\u5730\u65b9<\/strong>\u3002\u90a3\u4e48\u4e0d\u7528\u591a\u8bf4\uff0c\u4f60\u5e94\u8be5\u77e5\u9053\u54ea\u4e00\u79cd\u66f4\u9002\u5408\u4f60\u7684\u5e03\u5c40\u3002\u6b64\u5916\uff0c\u5982\u679c\u8981\u517c\u5bb9\u4f4e\u7248\u672c\u7684IE(\u6bd4\u5982IE8+)\uff0c\u53ef\u4ee5\u8003\u8651table\u5e03\u5c40\u3002<\/p>\n\n\n\n<p>\u6700\u540e\u95ee\u5927\u5bb6\u4e00\u4e2a\u95ee\u9898\uff0c\u5982\u679c\u4e2d\u95f4\u90e8\u5206\u88ab\u5185\u5bb9\u9ad8\u5ea6\u6491\u5f00\uff0c\u9700\u8981\u5de6\u53f3\u680f\u4e5f\u6491\u5f00\uff0c\u8fd9\u4e94\u79cd\u5e03\u5c40\u54ea\u4e9b\u5e03\u5c40\u8fd8\u53ef\u4ee5\u7528\uff1f<\/p>\n\n\n\n<p>\u7b54\u6848\uff1aflex\u5e03\u5c40\u548ctable\u5e03\u5c40<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u81ea: \u5b9e\u73b0\u4e09\u680f\u5e03\u5c40\u7684\u51e0\u79cd\u65b9\u6cd5 \u00b7 Issue #&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/log.tanxiaodian.com\/?p=626\">Continue reading<span class=\"screen-reader-text\">\u5b9e\u73b0\u4e09\u680f\u5e03\u5c40\u7684\u51e0\u79cd\u65b9\u6cd5<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[106],"_links":{"self":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/626"}],"collection":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=626"}],"version-history":[{"count":1,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/626\/revisions"}],"predecessor-version":[{"id":627,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/626\/revisions\/627"}],"wp:attachment":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}