{"id":2796,"date":"2024-11-10T09:17:39","date_gmt":"2024-11-10T01:17:39","guid":{"rendered":"https:\/\/fwq.ai\/blog\/2796\/"},"modified":"2024-11-10T09:17:39","modified_gmt":"2024-11-10T01:17:39","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-flex-%e5%b8%83%e5%b1%80%e5%ae%9e%e7%8e%b0%e8%83%8c%e6%99%af%e5%9e%82%e7%9b%b4%e5%b1%85%e4%b8%ad%e4%b8%94-body-%e9%ab%98%e5%ba%a6%e4%b8%ba-100%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/2796\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 Flex \u5e03\u5c40\u5b9e\u73b0\u80cc\u666f\u5782\u76f4\u5c45\u4e2d\u4e14 body \u9ad8\u5ea6\u4e3a 100%\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173088166384019.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u4f7f\u7528 Flex \u5e03\u5c40\u5b9e\u73b0\u80cc\u666f\u5782\u76f4\u5c45\u4e2d\u4e14 body \u9ad8\u5ea6\u4e3a 100%\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u4f7f\u7528 Flex \u5e03\u5c40\u5b9e\u73b0\u80cc\u666f\u5782\u76f4\u5c45\u4e2d\u4e14 body \u9ad8\u5ea6\u4e3a 100%\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>flex \u5e03\u5c40 body 100%<\/strong><\/p>\n<p>\u5728 Flex \u5e03\u5c40\u4e0b\uff0c\u8981\u5b9e\u73b0\u80cc\u666f\u5782\u76f4\u5c45\u4e2d\u5e76\u4e14 body \u9ad8\u5ea6 100%\uff0c\u9700\u8981\u540c\u65f6\u7ed9 html \u548c body \u6807\u7b7e\u8bbe\u7f6e\u9ad8\u5ea6\u4e3a 100%\u3002<\/p>\n<p><strong>html \u4ee3\u7801<\/strong><\/p>\n<pre>&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n  &lt;meta charset=\"utf-8\"&gt;\n  &lt;meta name=\"viewport\" content=\"width=device-width,initial-scale=1,maximum-scale=1\"&gt;\n  &lt;title&gt;Blog&lt;\/title&gt;\n  &lt;style type=\"text\/css\"&gt;\n    * {margin:0;padding:0;border:0;}\n    html, body {height: 100%;}\n    body {\n      display: flex;\n      justify-content: center;\n      align-items: center;\n      font-size: 20px;\n    }\n    .blog {\n      width:90%;\n      height:40vh;\n    }\n    h1{font-size:44px;}\n    p{padding:10px 0;}\n    @media only screen and (max-width: 812px) {\n      .blog {\n        width: 80%;\n        height:60vh;\n      }\n    }\n  &lt;\/style&gt;\n&lt;\/head&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u6216\u8005<\/strong><\/p>\n<pre>&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n  &lt;meta charset=\"utf-8\"&gt;\n  &lt;meta name=\"viewport\" content=\"width=device-width,initial-scale=1,maximum-scale=1\"&gt;\n  &lt;title&gt;Blog&lt;\/title&gt;\n  &lt;style type=\"text\/css\"&gt;\n    * {margin:0;padding:0;border:0;}\n    body {\n      height: 100%;\n      display: flex;\n      justify-content: center;\n      align-items: center;\n      font-size: 20px;\n    }\n    .blog {\n      width:90%;\n      height:40vh;\n    }\n    h1{font-size:44px;}\n    p{padding:10px 0;}\n    @media only screen and (max-width: 812px) {\n      .blog {\n        width: 80%;\n        height:60vh;\n      }\n    }\n  &lt;\/style&gt;\n&lt;\/head&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u4f7f\u7528 Flex \u5e03\u5c40\u5b9e\u73b0\u80cc\u666f\u4e14 body \u9ad8\u5ea6\u4e3a 100%\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>flex \u5e03\u5c40 body 100% \u5728 Flex \u5e03\u5c40\u4e0b\uff0c\u8981\u5b9e\u73b0\u80cc\u666f\u5782\u76f4\u5c45\u4e2d\u5e76\u4e14 body \u9ad8\u5ea6 100%\uff0c\u9700\u8981\u540c\u65f6\u7ed9 html \u548c body \u6807\u7b7e\u8bbe\u7f6e\u9ad8\u5ea6\u4e3a 100%\u3002 html \u4ee3\u7801 &lt;html lang=&#8221;en&#8221;&gt; &lt;head&gt; &lt;meta charset=&#8221;utf-8&#8243;&gt; &lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width,initial-scale=1,maximum-scale=1&#8243;&gt; &lt;title&gt;Blog&lt;\/title&gt; &lt;style type=&#8221;text\/css&#8221;&gt; * {margin:0;padding:0;border:0;} html, body {height: 100%;} body { display: flex; justify-content: center; align-items: center; font-size: 20px; } .blog { width:90%; height:40vh; } h1{font-size:44px;} p{padding:10px 0;} @media only [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-2796","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=2796"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2796\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=2796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=2796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=2796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}