{"id":2949,"date":"2020-05-18T08:25:25","date_gmt":"2020-05-18T00:25:25","guid":{"rendered":"http:\/\/www.yuguoxy.com\/geekhome\/?p=2949"},"modified":"2026-08-18T12:35:31","modified_gmt":"2026-08-18T04:35:31","slug":"%e6%94%b9%e5%96%84css%e7%9a%8410%e7%a7%8d%e6%9c%80%e4%bd%b3%e5%81%9a%e6%b3%95","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=2949","title":{"rendered":"\u6539\u5584CSS\u768410\u79cd\u6700\u4f73\u505a\u6cd5"},"content":{"rendered":"<section id=\"wenyan\" style=\"font-family: system-ui, 'Apple Color Emoji', 'Segoe UI', 'Segoe UI Symbol', 'Noto Sans', Roboto, sans-serif; line-height: 1.75; font-size: 16px; color: #000000; caret-color: #000000;\" data-provider=\"WenYan\">\n<p style=\"margin: 1em 0px;\">\u82f1\u6587 | <a class=\"url\" href=\"https:\/\/medium.com\/better-programming\/10-best-practices-for-improving-your-css-84c69aac66e\" target=\"_blank\">https:\/\/medium.com\/better-programming\/10-best-practices-for-improving-your-css-84c69aac66e<\/a>\u3002CSS \u770b\u8d77\u6765\u5f88\u96be\u5199\u9519\uff1a\u52a0\u51e0\u6761\u89c4\u5219\u5c31\u80fd\u6539\u5916\u89c2\u3002\u5c0f\u7ad9\u70b9\u51e0\u4e2a\u6587\u4ef6\u786e\u5b9e\u5982\u6b64\uff1b\u5927\u5e94\u7528\u91cc\u6837\u5f0f\u4f1a\u8fc5\u901f\u5931\u63a7\u3002\u5982\u4f55\u8ba9\u5b83\u53ef\u7ba1\u7406\uff1f<\/p>\n<p style=\"margin: 1em 0px;\">\u548c\u5176\u4ed6\u8bed\u8a00\u4e00\u6837\uff0cCSS \u80fd\u6210\u5168\u4e5f\u80fd\u6bc1\u6389\u8bbe\u8ba1\u3002\u4e0b\u9762 10 \u6761\u5b9e\u8df5\uff0c\u5e2e\u4f60\u4ece\u6837\u5f0f\u91cc\u62ff\u5230\u6700\u5927\u6536\u76ca\u3002<\/p>\n<table style=\"display: table; text-align: left; overflow: auto; border-collapse: collapse; margin: 1.4em auto; max-width: 100%; table-layout: fixed; overflow-wrap: break-word; word-break: break-all;\" width=\"800\">\n<thead>\n<tr>\n<th style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top; text-align: center; font-weight: bold; color: #4870ac; background: #f7f7f7;\">\u5e8f\u53f7<\/th>\n<th style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top; text-align: center; font-weight: bold; color: #4870ac; background: #f7f7f7;\">\u505a\u6cd5<\/th>\n<th style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top; text-align: center; font-weight: bold; color: #4870ac; background: #f7f7f7;\">\u6536\u76ca<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">1<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u5148\u95ee\u8981\u4e0d\u8981\u6846\u67b6<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u5c11\u5e26\u7528\u4e0d\u5230\u7684\u9009\u62e9\u5668<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">2<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">BEM \/ ITCSS \/ OOCSS<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u547d\u540d\u548c\u5206\u5c42\u4e00\u81f4<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">3<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u9884\u5904\u7406\u5668 + \u540e\u5904\u7406\u5668<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u62c6\u6587\u4ef6\u3001\u524d\u7f00\u3001\u53d8\u91cf<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">4\u20137<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u8bed\u4e49\u6807\u7b7e\u3001\u7b80\u5199\u3001\u53bb\u5197\u4f59\u3001\u7b80\u5355\u9009\u62e9\u5668<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u66f4\u5c0f\u66f4\u5feb\u66f4\u597d\u6539<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">8\u201310<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u4fdd\u7559 :focus \u8f6e\u5ed3\u3001\u79fb\u52a8\u4f18\u5148\u3001\u538b\u7f29<\/td>\n<td style=\"border: 1px solid #d9dfe4; padding: 9px 12px; font-size: 0.75em; line-height: 22px; vertical-align: top;\">\u53ef\u8bbf\u95ee\u3001\u5c11\u8986\u76d6\u3001\u4f53\u79ef\u5c0f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e00\u3001\u4f60\u771f\u7684\u9700\u8981\u4e00\u4e2a\u6846\u67b6\u5417\uff1f<\/h2>\n<p style=\"margin: 1em 0px;\">\u5148\u786e\u5b9a\u8981\u4e0d\u8981 CSS \u6846\u67b6\u3002\u73b0\u5728\u6709\u4e0d\u5c11\u8f7b\u91cf\u66ff\u4ee3\u3002\u901a\u5e38\u4f60\u4e0d\u4f1a\u7528\u5230\u6846\u67b6\u91cc\u6bcf\u4e2a\u9009\u62e9\u5668\uff0c\u5305\u91cc\u5c31\u4f1a\u6709\u65e0\u6548\u4ee3\u7801\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u5982\u679c\u53ea\u7528\u6309\u94ae\u6837\u5f0f\uff0c\u628a\u90a3\u90e8\u5206\u62f7\u8fdb\u81ea\u5df1\u7684 CSS\uff0c\u5220\u6389\u5176\u4f59\u3002\u4e5f\u53ef\u4ee5\u7528 DevTools \u7684\u4ee3\u7801\u8986\u76d6\u7387\u627e\u672a\u4f7f\u7528\u89c4\u5219\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2020\/05\/image-20200518081713408.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2951\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2020\/05\/image-20200518081713408.png\" alt=\"image-20200518081713408\" width=\"667\" height=\"501\" \/><\/a><\/p>\n<p style=\"margin: 1em 0px;\">\u5728\u5de5\u5177\u9762\u677f\u641c Coverage\uff0c\u6216 Ctrl+Shift+P \u6253\u5f00\u5de5\u5177\u9762\u677f\u3002\u70b9\u91cd\u65b0\u52a0\u8f7d\u5f00\u59cb\u5f55\u5236\u3002\u7ea2\u8272\u8868\u793a\u672a\u4f7f\u7528\u3002\u4e0a\u4f8b\u663e\u793a 98% CSS \u672a\u4f7f\u7528\u2014\u2014\u5176\u5b9e\u4e0d\u5b8c\u5168\u662f\uff1a\u6709\u7684\u6837\u5f0f\u8981\u4ea4\u4e92\u540e\u624d\u7528\uff0c\u79fb\u52a8\u7aef\u6837\u5f0f\u4e5f\u4f1a\u6807\u6210\u672a\u4f7f\u7528\u3002\u5220\u4e4b\u524d\u52a1\u5fc5\u786e\u8ba4\u771f\u6ca1\u7528\u3002<\/p>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e8c\u3001\u9996\u9009\u4e00\u5957 CSS \u65b9\u6cd5<\/h2>\n<p style=\"margin: 1em 0px;\">\u65b9\u6cd5\u662f\u4e3a\u4e86\u6587\u4ef6\u91cc\u7684\u4e00\u81f4\u6027\uff0c\u65b9\u4fbf\u6269\u5c55\u548c\u7ef4\u62a4\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">BEM<\/h3>\n<p style=\"margin: 1em 0px;\">Block\u3001Element\u3001Modifier\uff0c\u6700\u6d41\u884c\u7684\u547d\u540d\u4e4b\u4e00\uff0c\u65b9\u4fbf\u505a\u53ef\u590d\u7528\u7ec4\u4ef6\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">.block { ... }.block__element { ... }.block--modifier { ... }<\/code><\/pre>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">.block<\/code>\uff1a\u7ec4\u4ef6\uff0c\u72ec\u7acb\u5b9e\u4f53\u3002<\/section>\n<\/li>\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">.block__element<\/code>\uff1a\u5757\u7684\u4e00\u90e8\u5206\uff0c\u5fc5\u987b\u7ed1\u5728\u5757\u4e0a\u3002<\/section>\n<\/li>\n<li>\n<section><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">.block--modifier<\/code>\uff1a\u5916\u89c2\u3001\u884c\u4e3a\u6216\u72b6\u6001\u6807\u5fd7\uff0c\u4f8b\u5982 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">.block--hidden<\/code>\u3002<\/section>\n<\/li>\n<\/ul>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">ITCSS<\/h3>\n<p style=\"margin: 1em 0px;\">\u5012\u4e09\u89d2 CSS\uff1a\u4e00\u5c42\u5c42\u52a0\u7279\u6027\uff0c\u8d8a\u5f80\u4e0b\u8d8a\u5177\u4f53\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2020\/05\/image-20200518081733107.png\" rel=\"fancybox\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2952\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2020\/05\/image-20200518081733107.png\" alt=\"image-20200518081733107\" width=\"822\" height=\"450\" \/><\/a><\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">OOCSS<\/h3>\n<p style=\"margin: 1em 0px;\"><strong style=\"color: #4870ac;\">\u5206\u79bb\u7ed3\u6784\u548c\u76ae\u80a4<\/strong>\uff1a\u89c6\u89c9\u6548\u679c\u4e0d\u8981\u548c\u7ed3\u6784\u5199\u6b7b\u5728\u4e00\u8d77\u3002<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/* Instead of  *\/\n.box {   \n    width: 250px;    \n    height: 250px;    \n    padding: 10px;    \n    border: 1px solid #CCC;    \n    box-shadow: 1px 2px 5px #CCC;    \n    border-radius: 5px;\n}\n\/* Do *\/\n.box {    \n    width: 250px;    \n    height: 250px;    \n    padding: 10px;\n}\n.elevated {    \n    border: 1px solid #CCC;    \n    box-shadow: 1px 2px 5px #CCC;    \n    border-radius: 5px;\n}<\/code><\/pre>\n<p style=\"margin: 1em 0px;\"><strong style=\"color: #4870ac;\">\u5206\u9694\u5bb9\u5668\u548c\u5185\u5bb9<\/strong>\uff1a\u5143\u7d20\u4e0d\u8981\u4f9d\u8d56\u6240\u5728\u4f4d\u7f6e\uff0c\u540c\u4e00\u5143\u7d20\u5728\u54ea\u90fd\u5e94\u957f\u4e00\u6837\u3002<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/* Instead *\/\n.main span.breadcumb { ... }\n\/* Do *\/\n.breadcrumb { ... }<\/code><\/pre>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e09\u3001\u8bbe\u7f6e\u9884\u5904\u7406\u5668<\/h2>\n<p style=\"margin: 1em 0px;\">\u9884\u5904\u7406\u5668\u63d0\u4f9b CSS \u6ca1\u6709\u7684\u9ad8\u7ea7\u80fd\u529b\uff1a\u5faa\u73af\u3001\u53d8\u91cf\u3001\u51fd\u6570\u3002\u5e38\u89c1\u662f Sass\u3001Less\u3001Stylus\u3002\u5efa\u8bae Sass\uff1a\u793e\u533a\u548c\u6587\u6863\u90fd\u591a\u3002<\/p>\n<p style=\"margin: 1em 0px;\">\u53ef\u4ee5\u628a\u6587\u4ef6\u62c6\u6210\u53ef\u590d\u7528\u7684\u5c0f\u6587\u4ef6\uff0c\u4e92\u76f8 import\uff0c\u6216\u5206\u522b\u5f15\u8fdb\u5e94\u7528\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/\/ Import different modules into one SCSS file\n@import 'settings';\n@import 'tools';\n@import 'generic';\n@import 'elements';\n@import 'objects';\n@import 'components';\n@import 'trumps';<\/code><\/pre>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">\u5d4c\u5957\u9009\u62e9\u5668<\/h3>\n<p style=\"margin: 1em 0px;\">CSS \u672c\u8eab\u7f3a\u7684\u7b80\u5355\u80fd\u529b\uff0c\u5d4c\u5957\u80fd\u770b\u6e05\u7ed3\u6784\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">.wrapper {    \n    .sidebar {        \n        &amp;.collapsed {            \n            display: none;        \n        }\n        .list {            \n            .list-item {               \n                ...\n                &amp;.list-item--active {                   \n                    ...               \n                }            \n            }        \n        }    \n    }\n}<\/code><\/pre>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">\u81ea\u52a8\u52a0\u6d4f\u89c8\u5668\u524d\u7f00<\/h3>\n<p style=\"margin: 1em 0px;\">\u5b9e\u9a8c\u6027\u7279\u6027\u8981\u52a0\u524d\u7f00\uff1a-webkit-\uff08Chrome\/Safari\/\u65b0 Opera\uff09\u3001-moz-\uff08Firefox\uff09\u3001-o-\uff08\u65e7 Opera\uff09\u3001-ms-\uff08IE\/Edge\uff09\u3002\u652f\u6301\u4e3b\u6d41\u6d4f\u89c8\u5668\u5c31\u8981\u5199\u591a\u904d\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">.gradient {    \n    background: rgb(30,87,153);    \n    background: -moz-linear-gradient(top, rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%);    \n    background: -webkit-linear-gradient(top, rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%);    \n    background: linear-gradient(to bottom, rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%);    \n    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e5799', endColorstr='#7db9e8', GradientType=0);}<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">mixin \u53ef\u4ee5\u5f53\u51fd\u6570\u7528\uff0c\u907f\u514d\u786c\u7f16\u7801\u91cd\u590d\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">@mixin gradient() {    \n    background: rgb(30,87,153);    \n    background: -moz-linear-gradient(top, rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%);    \n    background: -webkit-linear-gradient(top, rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%);    \n    background: linear-gradient(to bottom, rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%);    \n    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e5799', endColorstr='#7db9e8', GradientType=0);}\n.gradient {    \n    @include gradient();\n}<\/code><\/pre>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">\u540e\u5904\u7406\u5668<\/h3>\n<p style=\"margin: 1em 0px;\">\u9884\u5904\u7406\u5668\u751f\u6210 CSS \u540e\uff0c\u540e\u5904\u7406\u5668\u518d\u4f18\u5316\u3002\u5e38\u89c1\u662f PostCSS\uff1a\u6309 Can I Use \u81ea\u52a8\u52a0\u524d\u7f00\u3002autoprefixer \u751a\u81f3\u4e0d\u7528\u624b\u5199\u524d\u7f00\uff0c\u4f8b\u5982\u652f\u6301\u6700\u8fd1\u56db\u4e2a\u7248\u672c\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">const autoprefixer = require('autoprefixer')({    \n    browsers: [  'last 4 versions',  'not ie &lt; 9'    ]\n});<\/code><\/pre>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">\u7528\u53d8\u91cf\u505a\u4e00\u81f4\u8bbe\u8ba1<\/h3>\n<p style=\"margin: 1em 0px;\">\u53d8\u91cf\u548c mixin \u4e00\u8d77\uff0c\u80fd\u628a\u8bbe\u8ba1\u89c4\u5219\u56fa\u5316\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/\/ Font definitions\n$font-12: 12px;\n$font-21: 21px;\/\/ Color definitions\n$color-white: #FAFAFA;\n$color-black: #212121;<\/code><\/pre>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u56db\u3001\u80fd\u7528\u6807\u8bb0\u5c31\u522b\u5806 CSS<\/h2>\n<p style=\"margin: 1em 0px;\">\u9009\u5bf9 HTML \u5143\u7d20\u5c31\u80fd\u51cf\u5c0f CSS\u3002\u6807\u9898\u5982\u679c\u5199\u6210\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">span.heading {    \n    display: block;    \n    font-size: 1.2em;    \n    margin-top: 1em;    \n    margin-bottom: 1em; \n}<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u7528 span \u5f53\u6807\u9898\u5c31\u8981\u8986\u76d6 display\u3001\u95f4\u8ddd\u3001\u5b57\u4f53\u3002\u6362\u6210 h1\/h2\/h3\uff0c\u9ed8\u8ba4\u6837\u5f0f\u5df2\u7ecf\u591f\u7528\uff0c\u56db\u6761\u89c4\u5219\u53ef\u4ee5\u7acb\u523b\u4e22\u6389\u3002<\/p>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e94\u3001\u4f7f\u7528\u901f\u8bb0\u5c5e\u6027<\/h2>\n<p style=\"margin: 1em 0px;\">\u4e0a\u9762\u7684 margin \u53ef\u4ee5\u5199\u6210\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">.heading {    margin: 1em 0;}<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">padding\u3001border\u3001background \u540c\u6837\u9002\u7528\u3002<\/p>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u516d\u3001\u51cf\u5c11\u5197\u4f59<\/h2>\n<p style=\"margin: 1em 0px;\">\u4e24\u4e2a\u7c7b\u53ea\u5dee\u4e00\u4e24\u89c4\u5219\u65f6\uff0c\u62bd\u51fa\u516c\u5171\u90e8\u5206\u5f53\u989d\u5916\u7c7b\u3002\u4e0d\u8981\u8fd9\u6837\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">&lt;style&gt;    \n .warning {        \n    width: 100%;        \n     height: 50px;       \n     background: yellow;        \n     border-radius: 5px;    \n    }\n    .elevated-warning {        \n        width: 100%;        \n        height: 50px;        \n        font-size: 150%;        \n        background: yellow;        \n        box-shadow: 1px 2px 5px #CCC;        \n        border-radius: 5px;    \n    }\n&lt;\/style&gt;\n&lt;div class=\"warning\"&gt;\u26a0\ufe0f&lt;\/div&gt;&lt;div class=\"elevated-warning\"&gt;&lt;\/div&gt;<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u6539\u6210\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">&lt;style&gt;    .warning {       \n    width: 100%;        \n    height: 50px;        \n    background: yellow;        \n    border-radius: 5px;    \n    }\n    .warning--elevated {        \n        font-size: 150%;        \n        box-shadow: 1px 2px 5px #CCC;    \n    }\n&lt;\/style&gt;\n&lt;div class=\"warning\"&gt;\u26a0\ufe0f&lt;\/div&gt;&lt;div class=\"warning warning--elevated\"&gt;&lt;\/div&gt;<\/code><\/pre>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e03\u3001\u907f\u514d\u590d\u6742\u9009\u62e9\u5668<\/h2>\n<p style=\"margin: 1em 0px;\">\u590d\u6742\u9009\u62e9\u5668\u6709\u4e24\u5bb3\uff1a\u7279\u5f02\u6027\u9ad8\uff0c\u4ee5\u540e\u66f4\u96be\u8986\u76d6\uff1b\u6d4f\u89c8\u5668\u5339\u914d\u4e5f\u66f4\u6162\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">\u5339\u914d\u9009\u62e9\u5668<\/h3>\n<p style=\"margin: 1em 0px;\">\u6d4f\u89c8\u5668\u4ece\u53f3\u5230\u5de6\u89e3\u91ca\u9009\u62e9\u5668\uff0c\u8fd9\u6bd4\u53cd\u8fc7\u6765\u5feb\u3002\u4f8b\u5982\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">.deeply .nested .selector span {    ...}<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u5148\u5339\u914d\u6240\u6709 span\uff0c\u518d\u8fc7\u6ee4 .selector\uff0c\u4f9d\u6b64\u7c7b\u63a8\u3002\u4e0d\u5efa\u8bae\u7528\u6807\u7b7e\u505a\u9009\u62e9\u5668\uff0c\u56e0\u4e3a\u5b83\u4f1a\u78b0\u4e0a\u6bcf\u4e2a\u8be5\u6807\u7b7e\u3002\u5355\u6b21\u53ef\u80fd\u53ea\u6709\u96f6\u70b9\u51e0\u6beb\u79d2\uff0c\u4f46\u517b\u6210\u964d\u4f4e\u590d\u6742\u5ea6\u662f\u597d\u4e60\u60ef\u3002<\/p>\n<h3 style=\"padding: 0px; color: #4870ac; margin: 1.2em 0px 1em; font-size: 1.3em;\">\u8ba9\u4eba\u4e5f\u80fd\u8bfb\u61c2<\/h3>\n<p style=\"margin: 1em 0px;\">\u673a\u5668\u96be\u89e3\u6790\uff0c\u4eba\u4e5f\u96be\u3002\u4e0b\u9762\u8fd9\u6761\u4f55\u65f6\u751f\u6548\uff1f<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">[type=\"checkbox\"]:checked + [class$=\"-confirmation\"]::after {    ...}<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u7528\u81ea\u5b9a\u4e49\u7c7b\u52a0 JS \u5207\u6362\u4f1a\u7b80\u5355\u5f97\u591a\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">.confirmation-icon::after {    ...}<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u771f\u7684\u522b\u65e0\u9009\u62e9\u65f6\uff0c\u81f3\u5c11\u5199\u6e05\u6ce8\u91ca\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/** * Creates a confirmation icon after a checkbox is selected. * Select all labels ending with a class name of \"-confirmation\" * that are preceeded by a checked checkbox. * PS.: There's no other way to get around this, don't try to fix it. **\/\n.checkbox:checked + label[class$=\"-confirmation\"]::after {    ...}<\/code><\/pre>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u516b\u3001\u4e0d\u8981\u5220\u9664\u8f6e\u5ed3<\/h2>\n<p style=\"margin: 1em 0px;\">\u6700\u5e38\u89c1\u9519\u8bef\u4e4b\u4e00\uff1a\u89c9\u5f97\u53bb\u6389 :focus \u9ad8\u4eae\u6ca1\u4e8b\uff0c\u5176\u5b9e\u8ba9\u952e\u76d8\u7528\u6237\u627e\u4e0d\u5230\u7126\u70b9\u3002\u5e38\u88ab\u5199\u8fdb reset\uff1a<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">:focus {    outline: none;}<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u53ea\u7528\u952e\u76d8\u5bfc\u822a\u7684\u4eba\u5c31\u4e0d\u77e5\u9053\u81ea\u5df1\u5728\u54ea\u3002\u9ed8\u8ba4\u6837\u5f0f\u4e0d\u5408\u54c1\u724c\u5c31\u505a\u81ea\u5b9a\u4e49\u8f6e\u5ed3\uff0c\u4f46\u5fc5\u987b\u6709\u7126\u70b9\u6307\u793a\u3002<\/p>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u4e5d\u3001\u9996\u5148\u4f7f\u7528\u79fb\u52a8\u8bbe\u5907<\/h2>\n<p style=\"margin: 1em 0px;\">\u5a92\u4f53\u67e5\u8be2\u8bf7\u79fb\u52a8\u4f18\u5148\uff1a\u5148\u5199\u5c0f\u5c4f\uff0c\u518d\u5f80\u4e0a\u52a0\uff0c\u4e5f\u53eb\u6e10\u8fdb\u589e\u5f3a\u3002\u8fd9\u6837\u662f\u7ed9\u5927\u5c4f\u52a0\u89c4\u5219\uff0c\u800c\u4e0d\u662f\u8986\u76d6\u5df2\u6709 CSS\uff0c\u6700\u7ec8\u89c4\u5219\u66f4\u5c11\u3002\u5224\u65ad\u65b9\u6cd5\uff1a\u67e5\u8be2\u7528 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #4870ac; font-size: 0.9em; font-weight: normal; overflow-wrap: break-word; padding: 2px 4px; border-radius: 3px; margin: 2px; background-color: #f6f8fa; word-break: break-all;\">min-width<\/code> \u5c31\u8d70\u5bf9\u4e86\u3002<\/p>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 12px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 12px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; overflow-x: auto; margin: 0.5em; padding: 3px 5px; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/* Mobile-first media query, everything above 600px will get the below styles *\/\n@media (min-width: 600px) {    \/* your CSS rules *\/}\n\/* Non mobile-first media query, everything below 600px will get the below styles *\/@media (max-width: 600px) {    \/* your CSS rules *\/}<\/code><\/pre>\n<h2 style=\"padding: 1px 12.5px; color: #ffffff; margin: 1.2em 0px 1em; border-radius: 4px; display: inline-block; background-color: #4870ac; font-size: 1.3em;\">\u5341\u3001\u538b\u7f29<\/h2>\n<p style=\"margin: 1em 0px;\">\u538b\u7f29\u6346\u7ed1\u6587\u4ef6\uff1a\u53bb\u6389\u6ce8\u91ca\u548c\u7a7a\u767d\u3002\u670d\u52a1\u5668\u7aef\u4e5f\u8981\u5f00\u538b\u7f29\u3002\u8fd8\u53ef\u4ee5\u6df7\u6dc6\u7c7b\u540d\u8fdb\u4e00\u6b65\u51cf\u5c0f CSS \u548c\u6807\u8bb0\u3002<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>Webpack\uff1acss-loader<\/section>\n<\/li>\n<li>\n<section>Gulp\uff1agulp-minify-cssnames<\/section>\n<\/li>\n<li>\n<section>\u6ca1\u6709\u73b0\u6210\u5305\u5c31\u81ea\u5df1\u505a\u4e00\u5957\u5b9e\u73b0<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\">\u8fd9 10 \u6b65\u80fd\u8ba9 CSS \u66f4\u8f7b\u3001\u66f4\u597d\u7ef4\u62a4\u3001\u66f4\u597d\u6269\u5c55\u3002\u9884\u5b9a\u4e49\u8c03\u8272\u677f\u548c\u7248\u5f0f\u89c4\u5219\u4e5f\u4f1a\u8ba9\u8bbe\u8ba1\u66f4\u4e00\u81f4\u3001\u6837\u5f0f\u66f4\u53ef\u590d\u7528\u3002<a href=\"https:\/\/mp.weixin.qq.com\/s\/ILSqgapaMgipfGjgqM6kqw\">\u539f\u6587<\/a><\/p>\n<blockquote style=\"display: block; font-size: 0.9em; border-left: 3px solid #4870ac; padding: 0.5em 1em; margin: 0px; background: #f6f8fa; color: #40464f;\">\n<p style=\"margin: 1em 0px;\"><strong style=\"color: #4870ac;\">\u4e00\u53e5\u8bdd\u603b\u7ed3\uff1a\u5927\u9879\u76ee\u91cc CSS \u8981\u9760\u65b9\u6cd5\uff08BEM\/ITCSS\uff09\u548c\u5de5\u7a0b\u5316\uff08\u9884\u5904\u7406\u5668\u3001\u8986\u76d6\u7387\u3001\u538b\u7f29\uff09\u7ba1\u4f4f\u4f53\u79ef\u4e0e\u7279\u5f02\u6027\uff0c\u800c\u4e0d\u662f\u5806\u9009\u62e9\u5668\u3002<\/strong><\/p>\n<\/blockquote>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u82f1\u6587 | https:\/\/medium.com\/better-programming\/10-best-prac [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[105,127],"tags":[209],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/2949"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2949"}],"version-history":[{"count":3,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/2949\/revisions"}],"predecessor-version":[{"id":2954,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/2949\/revisions\/2954"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}