{"id":8869,"date":"2019-08-17T15:07:42","date_gmt":"2019-08-17T07:07:42","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=8869"},"modified":"2019-08-17T22:52:25","modified_gmt":"2019-08-17T14:52:25","slug":"css-no-external-link","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2019\/08\/css-no-external-link\/","title":{"rendered":"\u662f\u65f6\u5019\u4e86\uff0c\u65e0\u5916\u94fe\u7684CSS\u5f00\u53d1\u7b56\u7565"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=8869\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=8869<\/a><br \/>\n\u672c\u6587\u6b22\u8fce\u5206\u4eab\u4e0e\u805a\u5408\uff0c\u5168\u6587\u8f6c\u8f7d\u5c31\u4e0d\u5fc5\u4e86\uff0c\u5c0a\u91cd\u7248\u6743\uff0c\u5708\u5b50\u5c31\u8fd9\u4e48\u5927\uff0c\u82e5\u6025\u7528\u53ef\u4ee5\u8054\u7cfb\u6388\u6743\u3002<br \/>\n<script>window.wxShareImgUrl = 'https:\/\/www.zhangxinxu.com\/study\/image\/share\/201908-code.png';<\/script><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201908\/programming-cover.png\" width=\"484\" height=\"300\" alt=\"\u65e0\u5916\u94fe\u7684CSS\u5f00\u53d1\" class=\"alignright clip thumb size-medium\" \/><\/p>\n<h3>\u4e00\u3001\u62dc\u62dcIE8\uff0c\u82f9\u679c\u9999\u8549\u5927\u897f\u74dc<\/h3>\n<p>\u60f3\u60f3\u770b\u73b0\u5728\u90fd\u4ec0\u4e48\u5e74\u4ee3\u4e86\uff0c\u6211\u5bb6\u5c0f\u670b\u53cb\u90fd\u5df2\u7ecf\u4f1a\u6253\u9171\u6cb9\u4e86\uff0cCSS\u4e2d\u7684\u4e00\u4e9b\u5f00\u53d1\u7b56\u7565\u4e5f\u9700\u8981\u53d1\u751f\u6539\u53d8\u4e86\u3002<\/p>\n<p>\u5982\u679c\u4f60\u7684\u9879\u76ee\u4e0d\u9700\u8981\u517c\u5bb9IE8\u6d4f\u89c8\u5668\uff0c\u5219\u8bd5\u8bd5\u8d2f\u5f7b\u4e0b\u9762\u8fd9\u6761CSS\u5f00\u53d1\u7b56\u7565\u3002<\/p>\n<p><big><strong>CSS\u4ee3\u7801\u4e2d\u65e0\u5916\u94fe\uff01<\/strong><\/big><\/p>\n<p>\u4e5f\u5c31\u662f\u4e0d\u8981\u6709\u4efb\u4f55\u7684http\/https\u8bf7\u6c42\u4eceCSS\u6587\u4ef6\u4e2d\u53d1\u51fa\u3002<\/p>\n<p>\u4f8b\u5982\u6211\u4eec\u4ee5\u524d\u663e\u793a\u4e00\u4e2a\u5c0f\u56fe\u6807\u80cc\u666f\uff0cCSS\u4ee3\u7801\u4f1a\u662f\u8fd9\u6837\uff1a<\/p>\n<pre>.icon-arrow-down {\r\n    background-image: url(.\/images\/arrow-down.svg);\r\n}<\/pre>\n<p>\u8d2f\u5f7b\u65e0\u5916\u94fe\u7684CSS\u5f00\u53d1\u7b56\u7565\u5219\u662f\u8fd9\u6837\uff1a<\/p>\n<pre>.icon-arrow-down {\r\n    background-image: url(\"data:image\/svg+xml,%3Csvg xmlns='http:\/\/www.w3.org\/2000\/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12.012 19.676l-8.508-8.508-2.502 2.502 11.011 11.011 11.011-11.011-2.502-2.502z'%3E%3C\/path%3E%3C\/svg%3E\");\r\n}<\/pre>\n<p>\u539f\u672c\u5916\u94fe\u7684\u56fe\u5f62\u5168\u90e8\u5185\u8054\u3002<\/p>\n<h3>\u4e8c\u3001\u6ca1\u6709\u4f46\u662f\uff0c\u5c31\u662f\u8fd9\u6837\uff0c\u662f\u65f6\u5019\u4e86<\/h3>\n<p>\u80af\u5b9a\u6709\u4eba\u4f1a\u7591\u95ee\uff1a\u201c\u4f46\u662f\u4f60\u8fd9\u6837\u660e\u663e\u589e\u52a0\u4e86CSS\u6587\u4ef6\u4f53\u79ef\u5566\u3002\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201908\/akuya-ques-1.jpg\" width=\"360\" height=\"202\" alt=\"\u6587\u4ef6\u4f53\u79ef\u7591\u95ee\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u6ca1\u6709\u4f46\u662f\uff01\u73b0\u5728\u4ec0\u4e48\u5e74\u4ee3\u4e86\uff0c5G\u65f6\u4ee3\u90fd\u8981\u6765\u4e86\uff0c\u5bbd\u5e26\u901f\u5ea6\u591a\u5757\uff0c\u4e00\u4e2a\u5c0f\u5c0fCSS\u6587\u4ef6\uff0c\u518d\u600e\u4e48\u72c2\u5984\uff0c\u5176\u589e\u52a0\u7684\u4f53\u79ef\u62b5\u5f97\u4e0a\u4e00\u4e2a\u77ed\u89c6\u9891\u5417\uff0c\u62b5\u5f97\u4e0a\u4e00\u5f20\u56fe\u7247\u5417\uff1f<\/p>\n<p>20K\u7684CSS\u6587\u4ef6\u548c50K\u7684CSS\u6587\u4ef6\u5b8c\u5168\u5c31\u6ca1\u6709\u533a\u522b\uff0c\u5982\u679c\u4f60\u771f\u7684\u5bf9\u6d41\u91cf\u5f88\u5728\u610f\uff0c\u597d\u597d\u628a\u4f60\u7f51\u7ad9\u7684\u56fe\u7247\u538b\u7f29\u538b\u7f29\uff0c\u90a3\u4e2a\u624d\u662f\u5927\u5934\uff0c\u624d\u662f\u771f\u7701\u94b1\u3002<\/p>\n<p>\u518d\u8bf4\u4e86\uff0c\u4e00\u6b21CSS\u603b\u7684\u8bf7\u6c42\u548c\u4e4b\u524d\u5206\u5f00\u7684\u8bf7\u6c42\u7684\u603b\u5927\u5c0f\u5e76\u6ca1\u6709\u53d8\u5316\uff0c\u76f8\u53cd\uff0c\u6709\u4e9b\u7d20\u6750\u53d8\u6210\u5b57\u7b26\u540e\u53cd\u800c\u53ef\u4ee5GZIP\uff0c\u4f53\u79ef\u66f4\u5c0f\u624d\u662f\u3002<\/p>\n<hr>\n<p>\u8fd8\u6709\u4eba\u4f1a\u7591\u95ee\uff1a\u201c\u4f46\u662f\u4f60\u8fd9\u6837\u4f1a\u5f71\u54cdCSS\u6587\u4ef6\u7684\u6e32\u67d3\u6027\u80fd\u5566\u3002\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201908\/akuya-ques-2.jpg\" width=\"360\" height=\"202\" alt=\"\u6e32\u67d3\u6027\u80fd\u7591\u95ee\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u6ca1\u6709\u4f46\u662f\uff01\u73b0\u5728\u4ec0\u4e48\u5e74\u4ee3\u4e86\uff0c\u82af\u7247\u90fd\u662f7nm\u7684\u4e86\u3002\u6e32\u67d3\u90fd\u5f88\u5feb\u7684\uff0c\u518d\u8bf450ms\u7684\u6e32\u67d3\u548c100ms\u7684\u6e32\u67d3\u6709\u5dee\u5f02\u5417\uff1f\u5982\u679c\u771f\u7684\u5bf9\u6027\u80fd\u5f88\u5728\u610f\uff0c\u4ec0\u4e48React.js\u4ec0\u4e48\u9b3c\u7684\u90fd\u5220\u6389\uff0c\u90a3\u53ef\u771f\u662f\u7acb\u7aff\u89c1\u5f71\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u662f\u65f6\u5019\u4e86\uff0c\u6280\u672f\u4e0a\u5b8c\u5168\u652f\u6301\uff0c\u786c\u4ef6\u73af\u5883\u4e5f\u652f\u6301\uff0c\u4e3a\u4f55\u4e0d\u4f7f\u7528\u597d\u5904\u591a\u591a\u7684\u65e0\u5916\u94fe\u7684CSS\u5f00\u53d1\u7b56\u7565\u5462\uff01<\/p>\n<hr>\n<p><strong>\u5176\u4ed6\u4f46\u662f\uff0c\u6e90\u81ea\u8bc4\u8bba<\/strong><\/p>\n<p>\u201c\u8bf7\u6c42\u4e0d\u662f\u80fd\u7f13\u5b58\u5417\uff1f\u7f13\u5b58\u7684\u8bdd\u662f\u4e0d\u662f\u5c31\u66f4\u8282\u7701\u8d44\u6e90\u4e86\u5462\uff1f\u201d<\/p>\n<p>\u6ca1\u6709\u4f46\u662f\uff0cCSS\u4e5f\u53ef\u4ee5\u7f13\u5b58\uff0c\u53d6\u4e00\u4e2a\u7f13\u5b58\u80af\u5b9a\u6bd4\u53d6\u591a\u4e2a\u7f13\u5b58\u66f4\u5feb\u54df\u3002<\/p>\n<p>\u201c\u4f46\u6211\u6709http2\u554a\u201d<\/p>\n<p>\u6ca1\u6709\u4f46\u662f\uff0cCSS\u65e0\u5916\u94fe\u548chttp2\u4e0d\u51b2\u7a81\u54e6\uff0c\u540c\u6837\u662fhttp2\uff0cCSS\u65e0\u5916\u94fe\u80af\u5b9a\u6bd4\u6709\u5f88\u591a\u94fe\u63a5\u5feb\u54df\uff0c\u5982\u4eca\u8fd9\u4e2a\u65f6\u4ee3\uff0c\u5c0f\u6587\u4ef6\u7684\u6027\u80fd\u7684\u74f6\u9888\u4e0d\u662f\u7f51\u901f\uff0c\u800c\u662f\u53d1\u8d77\u548c\u63a5\u6536\u8bf7\u6c42\u3002\u5185\u8054\u4e00\u5b9a\u901f\u5ea6\u6700\u5feb\u3002\u5f53\u7136\uff0c\u5dee\u5f02\u5e76\u4e0d\u4f1a\u6709\u591a\u660e\u663e\uff0cCSS\u65e0\u5916\u94fe\u6700\u91cd\u8981\u7684\u4f18\u70b9\u8fd8\u662f\u72ec\u7acb\u65e0\u8026\u5408\u8fc1\u79fb\u4e0e\u5f15\u7528\u65b9\u4fbf\u3002<\/p>\n<h3>\u4e09\u3001\u65e0\u5916\u94fe\u7684CSS\u5f00\u53d1\u7b56\u7565\u7684\u597d\u5904<\/h3>\n<h4>1. \u8282\u7ea6\u4e86\u5927\u91cf\u7684\u8bf7\u6c42<\/h4>\n<p>\u4f60\u4f1a\u53d1\u73b0\u9875\u9762\u7684\u6e32\u67d3\u548c\u5448\u73b0\u901f\u5ea6\u5feb\u4e86\u5f88\u591a\uff0c\u56e0\u4e3a\u9875\u9762\u6e32\u67d3\u7684\u74f6\u9888\u5f80\u5f80\u5728\u4e8ehttp\/https\u8bf7\u6c42\u4e0a\uff0c\u4e0d\u662f\u4ec0\u4e48CSS\u6e32\u67d3\u65f6\u95f4\u54e6\uff0c\u6211\u4eec\u5e73\u5e38\u5f00\u53d1\u7684\u7f51\u9875\u662f\u5982\u6b64\u7684\u7b80\u5355\uff0c\u90a3\u70b9CSS\u4ee3\u7801\u91cf\u7684\u6e32\u67d3\u518d\u600e\u4e48\u8e66\u4e0a\u5929\u4e5f\u6ca1\u4ec0\u4e48\u672c\u8d28\u533a\u522b\u7684\u3002<\/p>\n<p>\u8282\u7ea6\u4e86\u5927\u91cf\u8bf7\u6c42\u4e5f\u610f\u5473\u7740\u5927\u5927\u51cf\u8f7b\u4e86\u670d\u52a1\u5668\u7684\u538b\u529b\uff0c\u4f8b\u5982\u963f\u91cc\u4e91\u7684https CDN\u662f\u8bf7\u6c42\u6570\u7ed9\u94b1\u7684\uff0c\u8fd9\u6837\u5904\u7406\u662f\u4e0d\u662f\u7701\u4e86\u5f88\u591a\u7684\u94b1\uff1f <img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/1f92a.svg\" width=\"20\" height=\"20\" align=\"absmiddle\"><\/p>\n<h4>2. \u8fc1\u79fb\u4e0e\u5f15\u7528\u66f4\u65b9\u4fbf<\/h4>\n<p>\u7531\u4e8e\u6ca1\u6709\u4efb\u4f55\u5916\u94fe\uff0c\u4f60\u5199\u7684\u8fd9\u5957\u6837\u5f0f\u5e03\u5c40\u6216\u8005\u7ec4\u4ef6\u60f3\u7ed9\u522b\u4eba\u4f7f\u7528\uff0c\u5f88\u7b80\u5355\uff0c\u53ea\u8981\u628aCSS\u6587\u4ef6\u62f7\u8fc7\u53bb\u5c31\u597d\u4e86\u3002\u4f46\u662f\u5982\u679c\u662f\u4f20\u7edf\u7684\u90a3\u79cd\u5916\u94fe\u5b9e\u73b0\uff0c\u8fd8\u9700\u8981\u628a\u9759\u6001\u56fe\u7247\u8d44\u6e90\u4e00\u8d77\u62f7\u8fc7\u53bb\uff0c\u6210\u672c\u5c31\u9ad8\u4e86\u3002\u8fd9\u662f\u6211\u529b\u63a8\u65e0\u5916\u94fe\u7684CSS\u5f00\u53d1\u6700\u91cd\u8981\u7684\u539f\u56e0\uff0c\u771f\u7684\u5f88\u8212\u5fc3\u3002<\/p>\n<h4>3. \u6ca1\u6709\u4e86\u8de8\u57df\u95ee\u9898<\/h4>\n<p>\u4f8b\u5982\u5b57\u4f53\u6587\u4ef6\u662f\u6709\u8de8\u57df\u95ee\u9898\u7684\uff0c\u8d70\u5185\u8054\u5219\u6ca1\u6709\u8fd9\u4e2a\u56f0\u6270\u3002<\/p>\n<h4>3. \u6ca1\u6709\u5408\u5e76\u7684\u6210\u672c<\/h4>\n<p>\u4ee5\u524d\u4e3a\u4e86\u8282\u7ea6\u70b9http\u8bf7\u6c42\uff0c\u5c0f\u56fe\u6807\u8fd8\u5408\u5728\u4e00\u8d77\uff0c\u65e0\u5916\u94feCSS\u5f00\u53d1\u76f4\u63a5\u56fe\u6807\u5408\u5e76\u5728CSS\u4e2d\uff0c\u65e0\u9700\u989d\u5916\u529f\u592b\uff0c\u5f00\u53d1\u66f4\u8f7b\u677e\u66f4\u4fbf\u6377\u3002\u7528\u5230\u54ea\u4e2a\u56fe\u6807\uff0c\u590d\u5236\u7c98\u8d34\u4e0b\u5c31\u597d\u4e86\uff0c\u8f7b\u8f7b\u677e\u677e\u53c8\u9ad8\u6027\u80fd\uff0c\u4e0d\u8981\u592a\u68d2\u54e6\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/1f609.svg\" width=\"20\" height=\"20\" align=\"absmiddle\"><\/p>\n<h3>\u56db\u3001\u65e0\u5916\u94fe\u7684CSS\u5f00\u53d1\u5b9e\u8df5<\/h3>\n<p>\u901a\u5e38\uff0cCSS\u6587\u4ef6\u4e2d\u4e3b\u8981\u5916\u94fe\u8d44\u6e90\u662f\u5c0f\u56fe\u6807\uff0c\u6240\u4ee5\uff0c\u5904\u7406\u597d\u5c0f\u56fe\u6807\uff0cCSS\u4e5f\u5c31\u53ef\u4ee5\u544a\u522b\u5916\u94fe\u3002<\/p>\n<ol>\n<li>\u544a\u522bPNG\u56fe\u5f62\uff0c\u5168\u90e8\u4f7f\u7528\u77e2\u91cf\u56fe\u5f62\u3002<\/li>\n<li style=\"margin-top:12px;\">\u4f18\u5148\u4f7f\u7528<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2014\/07\/introduce-svg-sprite-technology\/\">SVG Sprites\u6280\u672f<\/a>\uff0cCSS\u4e2d\u4e0d\u51fa\u73b0\u5c0f\u56fe\u6807\u3002<\/li>\n<li style=\"margin-top:12px;\">\u5982\u679c\u9879\u76ee\u6bd4\u8f83\u5c0f\uff0c\u4f7f\u7528\u7684\u56fe\u6807\u4e0d\u591a\uff0c\u6ca1\u5fc5\u8981\u4f7f\u7528\u8fd8\u662f\u6709\u4e9b\u7ef4\u62a4\u6210\u672c\u7684SVG Sprites\u6280\u672f\u3002\u5219\u4f18\u5148\u5c1d\u8bd5CSS\u7ed8\u5236\u56fe\u6807\uff0c\u6211\u4eec\u6ca1\u5fc5\u8981\u81ea\u5df1\u5199\uff0c\u53ef\u4ee5\u76f4\u63a5\u590d\u5236\u522b\u4eba\u5df2\u7ecf\u5199\u597d\u7684CSS\u56fe\u6807\u5373\u53ef\u3002\u5173\u4e8e\u8fd9\u4e2a\uff0c\u53ef\u4ee5\u53c2\u89c1\u6211\u4e0a\u5468\u4e13\u95e8\u4e3a\u6b64\u6574\u7406\u7684\u201c<a href=\"https:\/\/www.zhangxinxu.com\/sp\/icon\/css.php\" rel=\"noopener\" class=\"a_link\" target=\"_blank\">\u5e38\u89c1\u7eafCSS\u56fe\u6807\u7684\u4ee3\u7801\u5206\u79bb\u4e0e\u6574\u7406<\/a>\u201d\uff0c<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2019\/08\/pure-css-icon\/\">\u6587\u6863\u4ecb\u7ecd\u53c2\u89c1\u8fd9\u91cc<\/a>\u3002<\/li>\n<li style=\"margin-top:12px;\">CSS\u53ef\u4ee5\u9a7e\u9a6d\u7684\u56fe\u6807\u6bd5\u7adf\u6709\u9650\uff0c\u6b64\u65f6\u63a8\u8350<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2018\/08\/css-svg-background-image-base64-encode\/\">\u4f7f\u7528\u8f6c\u4e49\u683c\u5f0f<\/a>\u8fdb\u884cSVG\u5185\u8054\uff0c\u8fd9\u6837\u65b9\u4fbf\u6211\u4eec\u8fdb\u884c\u989c\u8272\u8bbe\u7f6e\u3002\n<p><strong>\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/strong><br \/>\n\u53bb\u5c0f\u56fe\u6807\u5e73\u53f0\u4e0b\u8f7d\uff0c\u6216\u8005\u8bbe\u8ba1\u5de5\u5177\uff08sketch\u6216\u8005figma\uff09\u5bfc\u51faSVG\u539f\u56fe\u6807\uff0c\u7136\u540e\u6253\u5f00\u6211\u505a\u7684<a href=\"https:\/\/www.zhangxinxu.com\/sp\/svgo\/\" rel=\"noopener\" class=\"a_link\" target=\"_blank\">SVGO\u538b\u7f29\u5de5\u5177<\/a>\uff0c\u628a\u8fd9\u4e2a\u56fe\u6807\u590d\u5236\u6216\u9009\u62e9\u6216\u62d6\u62fd\u8fdb\u884c\u4e0a\u4f20\uff0c\u6b64\u65f6\uff0c\u6700\u53f3\u4fa7\u4e00\u4e2a\u8f93\u5165\u6846\u91cc\u9762\u5c31\u662f\u8f6c\u4e49SVG\u5185\u8054\u4ee3\u7801\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201908\/2019-08-17_141251.png\" width=\"461\" height=\"292\" alt=\"\u590d\u5236CSS\u8f6c\u4e49\u5185\u8054SVG\u4ee3\u7801\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u4f7f\u7528\u7684\u65f6\u5019\u9700\u8981<code>url()<\/code>\u51fd\u6570\u5185\u52a0\u4e0a\u53cc\u5f15\u53f7<code>\"<\/code>\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre style=\"color:gray\">.icon-arrow-down {\r\n    background-image: url(<strong style=\"color:#cd0000;\">\"<\/strong>data:image\/svg+xml,%3Csvg xmlns='http:\/\/www.w3.org\/2000\/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12.012 19.676l-8.508-8.508-2.502 2.502 11.011 11.011 11.011-11.011-2.502-2.502z'%3E%3C\/path%3E%3C\/svg%3E<strong style=\"color:#cd0000;\">\"<\/strong>);\r\n}<\/pre>\n<p>\u5982\u679c\u4f60\u5bf9\u56fe\u6807UI\u9020\u578b\u8981\u6c42\u4e0d\u9ad8\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528<a href=\"https:\/\/www.zhangxinxu.com\/sp\/icon\/\" rel=\"noopener\" class=\"a_link\" target=\"_blank\">\u8fd9\u4e2a\u5de5\u5177\u9875\u9762<\/a>\u91cc\u9762\u63d0\u4f9b\u76841500\u591a\u4e2a\u5c0f\u56fe\u6807\uff1a<\/p>\n<p>\u70b9\u51fb\u4efb\u610f\u4e00\u4e2a\u5c0f\u56fe\u6807\uff0c\u53ef\u4ee5\u590d\u5236\u5404\u79cd\u5f62\u5f0f\u7684\u5185\u8054\u4ee3\u7801\uff0c\u5171\u56db\u79cd\u5185\u8054\uff0cHTML\u5185\u8054\uff0cBase64\u5185\u8054\uff0cCSS\u8f6c\u4e49\u5185\u8054\u7b49\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201908\/2019-08-17_141848.png\" width=\"671\" height=\"429\" alt=\"\u70b9\u51fb\u5c0f\u56fe\u6807\u540e\u7684\u5404\u79cd\u5185\u8054\u65b9\u6cd5\u793a\u610f\" class=\"alignnone size-medium\" \/>\n<\/li>\n<\/ol>\n<p>\u5982\u679c\u6709\u5c0f\u56fe\u6807\u4ee5\u5916\u7684\u5176\u4ed6\u56fe\u5f62\u4e5f\u662f\u7c7b\u4f3c\u5904\u7406\u3002<\/p>\n<h3>\u4e94\u3001\u544a\u522b\u4ee3\u7801\u7cbe\u795e\u6d01\u7656<\/h3>\n<p>CSS\u6587\u4ef6\u4e2d\u4f1a\u591a\u5904\u51fa\u73b0\u597d\u51e0K\u7684\u5185\u8054\u56fe\u6807\u4ee3\u7801\uff0c\u5f88\u591a\u4eba\u4f1a\u770b\u4e86\u96be\u53d7\u3002\u5176\u4ed6CSS\u5c5e\u6027\u90fd\u662f\u77ed\u77ed\u7684\uff0c\u5c31\u4f60\u957f\u957f\u7684\uff1b\u5176\u4ed6CSS\u5c5e\u6027\u90fd\u770b\u5f97\u61c2\uff0c\u5c31\u4f60\u4e0d\u77e5\u6240\u4e91\uff0c\u7ed9\u4eba\u611f\u89c9\u4ee3\u7801\u5f88\u4e0d\u534f\u8c03\u3002<\/p>\n<p>\u8fd9\u79cd\u611f\u53d7\u4eba\u4e4b\u5e38\u60c5\uff0c\u53ef\u4ee5\u7406\u89e3\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u6211\u4eec\u90fd\u5df2\u7ecf\u662f\u6210\u719f\u7684\u524d\u7aef\u5f00\u53d1\u4e86\uff0c\u6211\u4eec\u8ffd\u6c42\u7684\u662f\u6536\u76ca\uff0c\u8ffd\u6c42\u7684\u662f\u4ef7\u503c\uff0c\u7f8e\u611f\u548c\u827a\u672f\u90fd\u662f\u6b21\u8981\u7684\u3002\u8fd9\u79cd\u4e0d\u534f\u8c03\u653e\u5bbd\u5fc3\uff0c\u5fcd\u4e00\u5fcd\u5c31\u8fc7\u53bb\u4e86\u3002<\/p>\n<p>\u5f53\u7136\uff0c\u5982\u679c\u4f60\u5b9e\u5728\u770b\u4e0d\u4e0b\u53bb\uff0c\u4e5f\u4e0d\u662f\u6ca1\u6709\u4ec0\u4e48\u89e3\u51b3\u529e\u6cd5\uff0c\u53ef\u4ee5\u628a\u5185\u8054\u7684\u4e00\u4e32\u5b57\u7b26\u6298\u53e0\u8d77\u6765\uff0c\u8fd9\u6837\u4e0d\u5c31\u773c\u4e0d\u89c1\u5fc3\u4e0d\u70e6\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201908\/2019-08-17_143021.png\" width=\"293\" height=\"59\" alt=\"\u5185\u8054\u4ee3\u7801\u6298\u53e0\" class=\"alignnone size-medium\" \/><\/p>\n<h3>\u516d\u3001\u7ed3\u675f\u8bed<\/h3>\n<p>\u65e0\u5916\u94fe\u7684CSS\u5f00\u53d1\u7b56\u7565\u9700\u8981\u4e00\u4e2a\u5916\u94fe\u8d44\u6e90\u90fd\u6ca1\u6709\uff0c\u53ea\u8981\u6709\u4e00\u4e2a\u51fa\u73b0\uff0c\u5176\u6700\u5927\u7684\u8f6c\u79fb\u65b9\u4fbf\u4f18\u70b9\u5c31\u4e0d\u590d\u5b58\u5728\u3002<\/p>\n<p>\u8fd9\u79cd\u7b56\u7565\u9002\u5408\u5e38\u89c4\u7684\u529f\u80fd\u6027\u7684\u4ea7\u54c1\u5f00\u53d1\uff0c\u4e5f\u5c31\u662f\u6211\u4eec\u5e73\u65f6\u4f7f\u7528\u7684\u5404\u79cd\u5e94\u7528\uff0c\u5bf9\u4e8e\u82b1\u91cc\u80e1\u54e8\u7684\u8fd0\u8425\u6d3b\u52a8\u8fd9\u79cd\u573a\u666f\u5c31\u4e0d\u9002\u5408\uff0c\u6709\u592a\u591a\u7684\u5927\u5927\u7684\u80cc\u666f\u56fe\u7247\u4e86\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u867d\u7136\u5f88\u591a\u8d44\u6e90\u90fd\u5185\u8054\u5728\u4e86CSS\u6587\u4ef6\u4e2d\uff0c\u4f46\u662f\uff0c\u539f\u59cb\u7684\u56fe\u5f62\u8d44\u6e90\u8fd8\u662f\u9700\u8981\u4fdd\u5b58\u4e0e\u5f52\u6863\u3002\u8fd9\u6837\u65b9\u4fbf\u65e5\u540e\u7684\u7ef4\u62a4\uff0c\u6bd4\u65b9\u8bf4\u4f60\u628a\u67d0\u4e2a\u5c0f\u56fe\u7247\u53d8\u6210\u4e86base64\uff0c\u8c01\u8981\u5728\u518d\u539f\u6210\u539f\u59cb\u56fe\u7247\uff0c\u8fd8\u662f\u9700\u8981\u70b9\u65f6\u95f4\u6298\u817e\u4e0b\u7684\uff0c\u4f46\u662f\u5982\u679c\u539f\u59cb\u7d20\u6750\u5c31\u5728\u9879\u76ee\u4e2d\uff0c\u5219\u663e\u7136\u65e0\u9700\u8fd9\u6837\u6298\u817e\u3002<\/p>\n<p>\u4e0e\u65f6\u4ff1\u8fdb\uff0c\u62e5\u62b1\u53d8\u5316\uff0c\u4e3a\u4e86\u66f4\u5feb\u66f4\u5f3a\uff0c\u65e0\u5916\u94feCSS\u5f00\u53d1\u8d70\u8d77\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/1f44a.svg\" width=\"20\" height=\"20\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u6b22\u8fce\u5206\u4eab\uff0c\u52ff\u5168\u6587\u8f6c\u8f7d\uff0c\u5982\u679c\u5185\u5bb9\u4f60\u5b9e\u5728\u559c\u6b22\uff0c\u53ef\u4ee5\u52a0\u5165\u6536\u85cf\u5939\uff0c\u6c38\u4e0d\u8fc7\u671f\uff0c\u800c\u4e14\u8fd8\u4f1a\u53ca\u65f6\u66f4\u65b0\u77e5\u8bc6\u70b9\u4ee5\u53ca\u4fee\u6b63\u9519\u8bef\uff0c\u9605\u8bfb\u4f53\u9a8c\u4e5f\u66f4\u597d\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=8869\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=8869<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201908\/programming-cover.png\" width=\"161\" height=\"100\" alt=\"\u65e0\u5916\u94fe\u7684CSS\u5f00\u53d1\" class=\"alignright size-medium\" loading=\"lazy\" \/><\/p>\n<p>\u662f\u65f6\u5019\u4e86\uff0c\u5982\u679c\u4f60\u7684\u9879\u76ee\u4e0d\u9700\u8981\u517c\u5bb9IE8\u6d4f\u89c8\u5668\uff0c\u5219\u8bd5\u8bd5\u8d2f\u5f7b\u4e0b\u9762\u8fd9\u6761CSS\u5f00\u53d1\u7b56\u7565\uff1aCSS\u6587\u4ef6\u6c38\u65e0\u5916\u94fe\uff01\u597d\u5904\u591a\u591a\u54df\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[163,710,1295,9,356,239,1413,642,931,722,322],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/8869"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=8869"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/8869\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=8869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=8869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=8869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}