{"id":1135,"date":"2024-07-27T17:18:07","date_gmt":"2024-07-27T09:18:07","guid":{"rendered":"http:\/\/codermr.com\/?p=1135"},"modified":"2024-07-27T19:21:05","modified_gmt":"2024-07-27T11:21:05","slug":"css_article5","status":"publish","type":"post","link":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/","title":{"rendered":"CSS \u57fa\u7840\uff08\u4e94\uff09\uff1a\u5bfc\u822a\u680f\u3001\u7f51\u9875\u5e03\u5c40"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u5bfc\u822a\u680f<\/h1>\n\n\n\n<p><strong>\u7b80\u6613\u5bfc\u822a\u680f<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html>\n&lt;head> \n&lt;meta charset=\"utf-8\"> \n&lt;\/head>\n&lt;body>\n&lt;ul>\n    &lt;li>&lt;a href=\"#home\">\u4e3b\u9875&lt;\/a>&lt;\/li>\n    &lt;li>&lt;a href=\"#news\">\u65b0\u95fb&lt;\/a>&lt;\/li>\n    &lt;li>&lt;a href=\"#contact\">\u8054\u7cfb&lt;\/a>&lt;\/li>\n    &lt;li>&lt;a href=\"#about\">\u5173\u4e8e&lt;\/a>&lt;\/li>\n&lt;\/ul>\n\n&lt;p>\u6ce8\u610f\uff1a\u8fd9\u91cc\u6211\u4eec\u7528 href=\"#\"\u4f5c\u4e3a\u6d4b\u8bd5\u8fde\u63a5\u3002\u4f46\u5728\u4e00\u4e2a\u771f\u6b63\u7684 web \u7ad9\u70b9\u4e0a\u9700\u8981\u771f\u5b9e\u7684 url\u3002&lt;\/p>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<p>\u663e\u793a\u6548\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-35.png\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"178\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-35.png\" alt=\"\" class=\"wp-image-1137\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-35.png 940w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-35-300x57.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-35-768x145.png 768w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-35-922x175.png 922w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><\/a><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">\u7f51\u9875\u5e03\u5c40<\/h1>\n\n\n\n<p>\u7f51\u9875\u5e03\u5c40\u6709\u5f88\u591a\u79cd\u65b9\u5f0f\uff0c\u4e00\u822c\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a<strong>\u5934\u90e8\u533a\u57df\u3001\u83dc\u5355\u5bfc\u822a\u533a\u57df\u3001\u5185\u5bb9\u533a\u57df\u3001\u5e95\u90e8\u533a\u57df<\/strong>\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-36.png\"><img loading=\"lazy\" decoding=\"async\" width=\"732\" height=\"361\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-36.png\" alt=\"\" class=\"wp-image-1138\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-36.png 732w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-36-300x148.png 300w\" sizes=\"(max-width: 732px) 100vw, 732px\" \/><\/a><\/figure>\n\n\n\n<p>\u5934\u90e8\u533a\u57df\u4e00\u822c\u662f&#8221;\u7f51\u7ad9\u540d\u79f0\u3001\u7f51\u7ad9\u6807\u9898&#8221;\u7b49\u4fe1\u606f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html>\n\n&lt;head>\n    &lt;meta charset=\"utf-8\">\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    &lt;style>\n        * {\n            box-sizing: border-box;\n        }\n\n        body {\n            margin: 0;\n        }\n\n        \/* \u5934\u90e8\u6837\u5f0f *\/\n        .header {\n            background-color: #f1f1f1;\n            padding: 20px;\n            text-align: center;\n        }\n\n        \/* \u5bfc\u822a\u6761 *\/\n        .topnav {\n            overflow: hidden;\n            background-color: #333;\n        }\n\n        \/* \u5bfc\u822a\u94fe\u63a5 *\/\n        .topnav a {\n            float: left;\n            display: block;\n            color: #f2f2f2;\n            text-align: center;\n            padding: 14px 16px;\n            text-decoration: none;\n        }\n\n        \/* \u94fe\u63a5 - \u4fee\u6539\u989c\u8272 *\/\n        .topnav a:hover {\n            background-color: #ddd;\n            color: black;\n        }\n    &lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n    &lt;div class=\"header\">\n        &lt;h1>\u5934\u90e8\u533a\u57df&lt;\/h1>\n    &lt;\/div>\n\n    &lt;div class=\"topnav\">\n        &lt;a href=\"#\">\u94fe\u63a5&lt;\/a>\n        &lt;a href=\"#\">\u94fe\u63a5&lt;\/a>\n        &lt;a href=\"#\">\u94fe\u63a5&lt;\/a>\n    &lt;\/div>\n\n&lt;\/body>\n\n&lt;\/html><\/code><\/pre>\n\n\n\n<p>\u663e\u793a\u6548\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-37.png\"><img loading=\"lazy\" decoding=\"async\" width=\"927\" height=\"263\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-37.png\" alt=\"\" class=\"wp-image-1139\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-37.png 927w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-37-300x85.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-37-768x218.png 768w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-37-922x262.png 922w\" sizes=\"(max-width: 927px) 100vw, 927px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5185\u5bb9\u533a\u57df<\/h2>\n\n\n\n<p>\u5185\u5bb9\u533a\u57df\u4e00\u822c\u6709\u4e09\u79cd\u5f62\u5f0f:<\/p>\n\n\n\n<ul>\n<li><strong>1 \u5217<\/strong>\uff1a\u4e00\u822c\u7528\u4e8e\u79fb\u52a8\u7aef<\/li>\n\n\n\n<li><strong>2 \u5217<\/strong>\uff1a\u4e00\u822c\u7528\u4e8e\u5e73\u677f\u8bbe\u5907<\/li>\n\n\n\n<li><strong>3 \u5217<\/strong>\uff1a\u4e00\u822c\u7528\u4e8e PC \u684c\u9762\u8bbe\u5907<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-38.png\"><img loading=\"lazy\" decoding=\"async\" width=\"745\" height=\"203\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-38.png\" alt=\"\" class=\"wp-image-1140\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-38.png 745w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-38-300x82.png 300w\" sizes=\"(max-width: 745px) 100vw, 745px\" \/><\/a><\/figure>\n\n\n\n<p><strong>\u4f8b\u5b50\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html>\n\n&lt;head>\n    &lt;meta charset=\"utf-8\">\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    &lt;style>\n        * {\n            box-sizing: border-box;\n        }\n\n        body {\n            margin: 0;\n        }\n\n        \/* \u5934\u90e8\u6837\u5f0f *\/\n        .header {\n            background-color: #f1f1f1;\n            padding: 20px;\n            text-align: center;\n        }\n\n        \/* \u5bfc\u822a\u6761 *\/\n        .topnav {\n            overflow: hidden;\n            background-color: #333;\n        }\n\n        \/* \u5bfc\u822a\u94fe\u63a5 *\/\n        .topnav a {\n            float: left;\n            display: block;\n            color: #f2f2f2;\n            text-align: center;\n            padding: 14px 16px;\n            text-decoration: none;\n        }\n\n        \/* \u94fe\u63a5 - \u4fee\u6539\u989c\u8272 *\/\n        .topnav a:hover {\n            background-color: #ddd;\n            color: black;\n        }\n\n        \/* \u521b\u5efa\u4e09\u4e2a\u76f8\u7b49\u7684\u5217\u3002\u5de6\u6d6e\u52a8\u3002 *\/\n        .column {\n            float: left;\n            width: 33.33%;\n        }\n\n        \/* \u5217\u540e\u6e05\u9664\u6d6e\u52a8 *\/\n        .row:after {\n            content: \"\";\n            display: table;\n            clear: both;\n        }\n\n        \/* \u54cd\u5e94\u5f0f\u5e03\u5c40 - \u5c0f\u4e8e 600 px \u65f6\u6539\u4e3a\u4e0a\u4e0b\u5e03\u5c40 *\/\n        @media screen and (max-width: 600px) {\n            .column {\n                width: 100%;\n            }\n        }\n    &lt;\/style>\n&lt;\/head>\n\n&lt;body>\n\n    &lt;div class=\"header\">\n        &lt;h1>\u5934\u90e8\u533a\u57df&lt;\/h1>\n        &lt;p>\u91cd\u7f6e\u6d4f\u89c8\u5668\u5927\u5c0f\u67e5\u770b\u6548\u679c\u3002&lt;\/p>\n    &lt;\/div>\n\n    &lt;div class=\"topnav\">\n        &lt;a href=\"#\">\u94fe\u63a5&lt;\/a>\n        &lt;a href=\"#\">\u94fe\u63a5&lt;\/a>\n        &lt;a href=\"#\">\u94fe\u63a5&lt;\/a>\n    &lt;\/div>\n\n    &lt;div class=\"row\">\n        &lt;div class=\"column\">\n            &lt;h2>\u7b2c\u4e00\u5217&lt;\/h2>\n            &lt;p>System.Text.Json \u662f .NET Core 3 \u53ca\u4ee5\u4e0a\u7248\u672c\u5185\u7f6e\u7684 Json \u5e8f\u5217\u5316\u7ec4\u4ef6\uff0c\u521a\u63a8\u51fa\u7684\u65f6\u5019\u7ecf\u5e38\u770b\u5230\u8e29\u5404\u79cd\u5751\u7684\u5410\u69fd\uff0c\u73b0\u5728\u7ecf\u8fc7\u51e0\u4e2a\u7248\u672c\u7684\u8fed\u4ee3\u4f18\u5316\uff0c\u63d0\u5347\u4e86\u6613\u7528\u6027\uff0c\u4fee\u590d\u4e86\u5404\u79cd\u95ee\u9898\uff0c\u662f\u65f6\u5019\u8003\u8651\u4f7f\u7528\n                System.Text.Json \u4e86\u3002\u672c\u6587\u5c06\u4ece\u4f7f\u7528\u5c42\u9762\u6765\u8fdb\u884c\u5bf9\u6bd4\u3002&lt;\/p>\n        &lt;\/div>\n\n        &lt;div class=\"column\">\n            &lt;h2>\u7b2c\u4e8c\u5217&lt;\/h2>\n            &lt;p>System.Text.Json\n                \u5728\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5341\u5206\u4e25\u683c\uff0c\u907f\u514d\u8fdb\u884c\u4efb\u4f55\u731c\u6d4b\u6216\u89e3\u91ca\uff0c\u5f3a\u8c03\u786e\u5b9a\u6027\u884c\u4e3a\u3002\u6bd4\u5982\uff1a\u5b57\u7b26\u4e32\u9ed8\u8ba4\u8f6c\u4e49\uff0c\u9ed8\u8ba4\u4e0d\u5141\u8bb8\u5c3e\u968f\u9017\u53f7\uff0c\u9ed8\u8ba4\u4e0d\u5141\u8bb8\u5e26\u5f15\u53f7\u7684\u6570\u5b57\u7b49\uff0c\u4e0d\u5141\u8bb8\u5355\u5f15\u53f7\u6216\u8005\u4e0d\u5e26\u5f15\u53f7\u7684\u5c5e\u6027\u540d\u79f0\u548c\u5b57\u7b26\u4e32\u503c\u3002\u8be5\u5e93\u662f\u4e3a\u4e86\u5b9e\u73b0\u6027\u80fd\u548c\u5b89\u5168\u6027\u800c\u7279\u610f\u8fd9\u6837\u8bbe\u8ba1\u7684\u3002Newtonsoft.Json\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5341\u5206\u7075\u6d3b\u3002\n            &lt;\/p>\n        &lt;\/div>\n\n        &lt;div class=\"column\">\n            &lt;h2>\u7b2c\u4e09\u5217&lt;\/h2>\n            &lt;p>\u5173\u4e8e\u6027\u80fd\uff0c\u53c2\u8003 Incerry \u7684\u6027\u80fd\u6d4b\u8bd5\uff1a.NET\u6027\u80fd\u7cfb\u5217\u6587\u7ae0\u4e8c\uff1aNewtonsoft.Json vs. System.Text.Json \uff0c\u5982\u679c\u6253\u7b97\u4f7f\u7528 .NET 7 \u4e0d\u59a8\u8003\u8651\u4e00\u4e0b\n                System.Text.Json\u3002&lt;\/p>\n        &lt;\/div>\n    &lt;\/div>\n\n&lt;\/body>\n\n&lt;\/html><\/code><\/pre>\n\n\n\n<p>\u663e\u793a\u6548\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-39.png\"><img loading=\"lazy\" decoding=\"async\" width=\"927\" height=\"579\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-39.png\" alt=\"\" class=\"wp-image-1141\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-39.png 927w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-39-300x187.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-39-768x480.png 768w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-39-922x576.png 922w\" sizes=\"(max-width: 927px) 100vw, 927px\" \/><\/a><\/figure>\n\n\n\n<p><strong>\u63d0\u793a:<\/strong>\u8981\u8bbe\u7f6e\u4e24\u5217\u53ef\u4ee5\u8bbe\u7f6e width \u4e3a 50%\u3002\u521b\u5efa 4 \u5217\u53ef\u4ee5\u8bbe\u7f6e\u4e3a 25%\u3002<\/p>\n\n\n\n<p><strong>\u63d0\u793a:<\/strong>\u5982\u679c\u4f60\u60f3\u4e86\u89e3\u66f4\u591a @media \u7684\u89c4\u5219\u53ef\u4ee5\u67e5\u770b&nbsp;<a href=\"https:\/\/www.runoob.com\/css3\/css3-mediaqueries.html\" target=\"_blank\" rel=\"noreferrer noopener\">CSS3 \u591a\u5a92\u4f53\u67e5\u8be2<\/a>\u3002<\/p>\n\n\n\n<p><strong>\u63d0\u793a:<\/strong>\u00a0\u73b0\u5728\u66f4\u9ad8\u7ea7\u7684\u65b9\u5f0f\u662f\u4f7f\u7528 CSS Flexbox \u6765\u521b\u5efa\u5217\u7684\u5e03\u5c40\uff0c\u4f46 Internet Explorer 10 \u53ca\u66f4\u65e9\u7684\u7248\u672c\u4e0d\u652f\u6301\u8be5\u65b9\u5f0f\uff0c IE6-10 \u53ef\u4ee5\u4f7f\u7528\u6d6e\u52a8\u65b9\u5f0f\u3002<br><br>CSS Flexbox \u7684\u66f4\u591a\u5185\u5bb9\u53ef\u4ee5\u67e5\u770b\u00a0<a href=\"https:\/\/www.runoob.com\/css3\/css3-flexbox.html\" target=\"_blank\" rel=\"noreferrer noopener\">CSS3 \u5f39\u6027\u76d2\u5b50(Flex Box)<\/a>\u3002<\/p>\n\n\n\n<p><strong>\u4e0d\u76f8\u7b49\u7684\u5217<\/strong><\/p>\n\n\n\n<p>\u4e0d\u76f8\u7b49\u7684\u5217\u4e00\u822c\u662f\u5728\u4e2d\u95f4\u90e8\u5206\u8bbe\u7f6e\u5185\u5bb9\u533a\u57df\uff0c\u8fd9\u5757\u4e5f\u662f\u6700\u5927\u6700\u4e3b\u8981\u7684\uff0c\u5de6\u53f3\u4e24\u6b21\u4fa7\u53ef\u4ee5\u4f5c\u4e3a\u4e00\u4e9b\u5bfc\u822a\u7b49\u76f8\u5173\u5185\u5bb9\uff0c\u8fd9\u4e09\u5217\u52a0\u8d77\u6765\u7684\u5bbd\u5ea6\u662f 100\uff05\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.column {\n  float: left;\n}\n \n\/* \u5de6\u53f3\u4fa7\u680f\u7684\u5bbd\u5ea6 *\/\n.column.side {\n  width: 25%;\n}\n \n\/* \u4e2d\u95f4\u5217\u5bbd\u5ea6 *\/\n.column.middle {\n  width: 50%;\n}\n \n\/* \u54cd\u5e94\u5f0f\u5e03\u5c40 - \u5bbd\u5ea6\u5c0f\u4e8e600px\u65f6\u8bbe\u7f6e\u4e0a\u4e0b\u5e03\u5c40 *\/\n@media screen and (max-width: 600px) {\n  .column.side, .column.middle {\n    width: 100%;\n  }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5e95\u90e8\u533a\u57df<\/h2>\n\n\n\n<p>\u5e95\u90e8\u533a\u57df\u5728\u7f51\u9875\u7684\u6700\u4e0b\u65b9\uff0c\u4e00\u822c\u5305\u542b\u7248\u6743\u4fe1\u606f\u548c\u8054\u7cfb\u65b9\u5f0f\u7b49\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.footer {\n  background-color: #F1F1F1;\n  text-align: center;\n  padding: 10px;\n}<\/code><\/pre>\n\n\n\n<p>\u53c2\uff1a<a href=\"https:\/\/www.runoob.com\/css\/css-website-layout.html\">https:\/\/www.runoob.com\/css\/css-website-layout.html<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u5e38\u89c1\u5e03\u5c40\u6536\u96c6\uff1a<\/h1>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-40.png\"><img loading=\"lazy\" decoding=\"async\" width=\"568\" height=\"611\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-40.png\" alt=\"\" class=\"wp-image-1142\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-40.png 568w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-40-279x300.png 279w\" sizes=\"(max-width: 568px) 100vw, 568px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-41.png\"><img loading=\"lazy\" decoding=\"async\" width=\"701\" height=\"564\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-41.png\" alt=\"\" class=\"wp-image-1143\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-41.png 701w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-41-300x241.png 300w\" sizes=\"(max-width: 701px) 100vw, 701px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-42.png\"><img loading=\"lazy\" decoding=\"async\" width=\"811\" height=\"656\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-42.png\" alt=\"\" class=\"wp-image-1144\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-42.png 811w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-42-300x243.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-42-768x621.png 768w\" sizes=\"(max-width: 811px) 100vw, 811px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-43.png\"><img loading=\"lazy\" decoding=\"async\" width=\"841\" height=\"653\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-43.png\" alt=\"\" class=\"wp-image-1145\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-43.png 841w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-43-300x233.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-43-768x596.png 768w\" sizes=\"(max-width: 841px) 100vw, 841px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-44.png\"><img loading=\"lazy\" decoding=\"async\" width=\"845\" height=\"579\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-44.png\" alt=\"\" class=\"wp-image-1146\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-44.png 845w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-44-300x206.png 300w, http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/image-44-768x526.png 768w\" sizes=\"(max-width: 845px) 100vw, 845px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u5bfc\u822a\u680f \u7b80\u6613\u5bfc\u822a\u680f\uff1a \u663e\u793a\u6548\u679c\uff1a \u7f51\u9875\u5e03\u5c40 \u7f51\u9875\u5e03\u5c40\u6709\u5f88\u591a\u79cd\u65b9\u5f0f\uff0c\u4e00\u822c\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a\u5934\u90e8\u533a\u57df\u3001\u83dc\u5355\u5bfc\u822a\u533a\u57df&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1136,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[61],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CSS \u57fa\u7840\uff08\u4e94\uff09\uff1a\u5bfc\u822a\u680f\u3001\u7f51\u9875\u5e03\u5c40 - \u7801\u5148\u751f\u7684\u535a\u5ba2<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CSS \u57fa\u7840\uff08\u4e94\uff09\uff1a\u5bfc\u822a\u680f\u3001\u7f51\u9875\u5e03\u5c40 - \u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"\u5bfc\u822a\u680f \u7b80\u6613\u5bfc\u822a\u680f\uff1a \u663e\u793a\u6548\u679c\uff1a \u7f51\u9875\u5e03\u5c40 \u7f51\u9875\u5e03\u5c40\u6709\u5f88\u591a\u79cd\u65b9\u5f0f\uff0c\u4e00\u822c\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a\u5934\u90e8\u533a\u57df\u3001\u83dc\u5355\u5bfc\u822a\u533a\u57df...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-27T09:18:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-27T11:21:05+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/css_layout1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"980\" \/>\n\t<meta property=\"og:image:height\" content=\"980\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u7801\u5148\u751f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/mrcode2021\" \/>\n<meta name=\"twitter:site\" content=\"@mrcode2021\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u7801\u5148\u751f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/\"},\"author\":{\"name\":\"\u7801\u5148\u751f\",\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"headline\":\"CSS \u57fa\u7840\uff08\u4e94\uff09\uff1a\u5bfc\u822a\u680f\u3001\u7f51\u9875\u5e03\u5c40\",\"datePublished\":\"2024-07-27T09:18:07+00:00\",\"dateModified\":\"2024-07-27T11:21:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/\"},\"wordCount\":24,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"keywords\":[\"html_css_js\"],\"articleSection\":[\"\u524d\u7aef\u6280\u672f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/\",\"url\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/\",\"name\":\"CSS \u57fa\u7840\uff08\u4e94\uff09\uff1a\u5bfc\u822a\u680f\u3001\u7f51\u9875\u5e03\u5c40 - \u7801\u5148\u751f\u7684\u535a\u5ba2\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/#website\"},\"datePublished\":\"2024-07-27T09:18:07+00:00\",\"dateModified\":\"2024-07-27T11:21:05+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/codermr.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS \u57fa\u7840\uff08\u4e94\uff09\uff1a\u5bfc\u822a\u680f\u3001\u7f51\u9875\u5e03\u5c40\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/codermr.com\/#website\",\"url\":\"http:\/\/codermr.com\/\",\"name\":\"\u7801\u5148\u751f\u7684\u535a\u5ba2\",\"description\":\"\u6b22 \u8fce \u4e0b \u8f7d \u6211 \u5f00 \u53d1 \u7684 \u5404 \u7aef \u8f6f \u4ef6 \u548c APP\",\"publisher\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/codermr.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\",\"name\":\"\u7801\u5148\u751f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg\",\"contentUrl\":\"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg\",\"width\":400,\"height\":400,\"caption\":\"\u7801\u5148\u751f\"},\"logo\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/codermr.com\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/mrcode2021\"],\"url\":\"http:\/\/codermr.com\/index.php\/author\/coderma\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CSS \u57fa\u7840\uff08\u4e94\uff09\uff1a\u5bfc\u822a\u680f\u3001\u7f51\u9875\u5e03\u5c40 - \u7801\u5148\u751f\u7684\u535a\u5ba2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/","og_locale":"zh_CN","og_type":"article","og_title":"CSS \u57fa\u7840\uff08\u4e94\uff09\uff1a\u5bfc\u822a\u680f\u3001\u7f51\u9875\u5e03\u5c40 - \u7801\u5148\u751f\u7684\u535a\u5ba2","og_description":"\u5bfc\u822a\u680f \u7b80\u6613\u5bfc\u822a\u680f\uff1a \u663e\u793a\u6548\u679c\uff1a \u7f51\u9875\u5e03\u5c40 \u7f51\u9875\u5e03\u5c40\u6709\u5f88\u591a\u79cd\u65b9\u5f0f\uff0c\u4e00\u822c\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a\u5934\u90e8\u533a\u57df\u3001\u83dc\u5355\u5bfc\u822a\u533a\u57df...","og_url":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/","og_site_name":"\u7801\u5148\u751f\u7684\u535a\u5ba2","article_published_time":"2024-07-27T09:18:07+00:00","article_modified_time":"2024-07-27T11:21:05+00:00","og_image":[{"width":980,"height":980,"url":"http:\/\/codermr.com\/wp-content\/uploads\/2024\/07\/css_layout1.png","type":"image\/png"}],"author":"\u7801\u5148\u751f","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/mrcode2021","twitter_site":"@mrcode2021","twitter_misc":{"\u4f5c\u8005":"\u7801\u5148\u751f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/#article","isPartOf":{"@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/"},"author":{"name":"\u7801\u5148\u751f","@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"headline":"CSS \u57fa\u7840\uff08\u4e94\uff09\uff1a\u5bfc\u822a\u680f\u3001\u7f51\u9875\u5e03\u5c40","datePublished":"2024-07-27T09:18:07+00:00","dateModified":"2024-07-27T11:21:05+00:00","mainEntityOfPage":{"@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/"},"wordCount":24,"commentCount":0,"publisher":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"keywords":["html_css_js"],"articleSection":["\u524d\u7aef\u6280\u672f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/","url":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/","name":"CSS \u57fa\u7840\uff08\u4e94\uff09\uff1a\u5bfc\u822a\u680f\u3001\u7f51\u9875\u5e03\u5c40 - \u7801\u5148\u751f\u7684\u535a\u5ba2","isPartOf":{"@id":"http:\/\/codermr.com\/#website"},"datePublished":"2024-07-27T09:18:07+00:00","dateModified":"2024-07-27T11:21:05+00:00","breadcrumb":{"@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/codermr.com\/index.php\/2024\/07\/27\/css_article5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/codermr.com\/"},{"@type":"ListItem","position":2,"name":"CSS \u57fa\u7840\uff08\u4e94\uff09\uff1a\u5bfc\u822a\u680f\u3001\u7f51\u9875\u5e03\u5c40"}]},{"@type":"WebSite","@id":"http:\/\/codermr.com\/#website","url":"http:\/\/codermr.com\/","name":"\u7801\u5148\u751f\u7684\u535a\u5ba2","description":"\u6b22 \u8fce \u4e0b \u8f7d \u6211 \u5f00 \u53d1 \u7684 \u5404 \u7aef \u8f6f \u4ef6 \u548c APP","publisher":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/codermr.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf","name":"\u7801\u5148\u751f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/codermr.com\/#\/schema\/person\/image\/","url":"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg","contentUrl":"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg","width":400,"height":400,"caption":"\u7801\u5148\u751f"},"logo":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/codermr.com","https:\/\/twitter.com\/https:\/\/twitter.com\/mrcode2021"],"url":"http:\/\/codermr.com\/index.php\/author\/coderma\/"}]}},"_links":{"self":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1135"}],"collection":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/comments?post=1135"}],"version-history":[{"count":2,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1135\/revisions"}],"predecessor-version":[{"id":1149,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1135\/revisions\/1149"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/media\/1136"}],"wp:attachment":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/media?parent=1135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/categories?post=1135"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/tags?post=1135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}