{"id":5753,"date":"2016-11-13T20:58:55","date_gmt":"2016-11-13T12:58:55","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=5753"},"modified":"2019-09-24T19:38:39","modified_gmt":"2019-09-24T11:38:39","slug":"css-content-pre-animation-character-loading","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2016\/11\/css-content-pre-animation-character-loading\/","title":{"rendered":"CSS content\u6362\u884c\u5b9e\u73b0\u5b57\u7b26\u70b9\u70b9\u70b9loading\u6548\u679c"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=5753\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=5753<\/a><br \/>\n\u672c\u6587\u53ef\u5168\u6587\u8f6c\u8f7d\uff0c\u4f46\u9700\u5f97\u5230\u4e66\u9762\u8bb8\u53ef\uff0c\u540c\u65f6\u4fdd\u7559\u539f\u4f5c\u8005\u548c\u51fa\u5904\uff0c\u6458\u8981\u5f15\u6d41\u5219\u968f\u610f\u3002<\/p>\n<h3>\u4e00\u3001\u4e4b\u524d\u6211\u7684\u5b57\u7b26loading\u5b9e\u73b0<\/h3>\n<p>\u5173\u4e8e<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2014\/12\/css3-animation-dotting-loading\/\">\u5b57\u7b26\u6253\u70b9\u52a8\u753b<\/a>\u5b9e\u73b0\uff0c\u6211\u4e4b\u524d\u4f7f\u7528\u8fc7<code>box-shadow<\/code>\u6a21\u62df\uff0c\u8fd8\u6709<code>border+background<\/code>\u6a21\u62df\uff0c\u8fd8\u6709\u4f7f\u7528<code>text-shadow<\/code>\u5b9e\u73b0\uff0c\u4ee5\u53ca\u4eca\u5e74\u81ea\u8ba4\u4e3a\u662f\u6700\u597d\u7684\u5b9e\u73b0\u7684\u5229\u7528CSS3 <code>ch<\/code>\u5355\u4f4d\u7684\u5b9e\u73b0\uff0c\u5728\u201c<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/2016\/07\/monospaced-font-css3-ch-unit\/\">\u7b49\u5bbd\u5b57\u4f53\u5728web\u5e03\u5c40\u4e2d\u5e94\u7528\u4ee5\u53caCSS3 ch\u5355\u4f4d<\/a>\u201d\u8fd9\u7bc7\u6587\u7ae0\u6709\u4ecb\u7ecd\uff0c<a href=\"http:\/\/www.zhangxinxu.com\/study\/201607\/animation-text-indent-dot-dot-dot-wait.html\" target=\"_blank\">demo\u5728\u8fd9\u91cc<\/a>\uff0c\u6548\u679c\u7c7b\u4f3c\u4e0b\u9762\uff08\u5077\u61d2\uff0c\u975e\u771f\u5b9e\u622a\u56fe\uff0c\u4ee5\u524d\u505a\u7684\u56fe\uff09\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"146\" height=\"46\" alt=\"\u70b9\u70b9\u70b9gif\u52a8\u753b\u6548\u679c\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/201306\/dot.gif\"><\/p>\n<p>\u7136\u540e\uff0c\u6211\u4eca\u5929\u624d\u53d1\u73b0\uff0c\u539f\u6765\u8fd8\u771f\u662f\u4e00\u5c71\u8fd8\u6709\u4e00\u5c71\u9ad8\uff0c\u6709\u4e2a\u66f4\u5de7\u5999\u7684\u5b57\u7b26\u6253\u70b9\u52a8\u753b\uff0c\u5229\u7528CSS content\u5185\u5bb9\u751f\u6210\u6280\u672f\u4ee5\u53caCSS3 animation\u5b9e\u73b0\u7684\uff0c\u5e76\u4e14\u51e0\u4e4e\u6ca1\u6709\u4efb\u4f55\u7684\u4e0d\u8db3\uff0c\u8fd9\u91cc\u7ed9\u5927\u5bb6\u5c55\u793a\u4e0b\u5982\u4f55\u5b9e\u73b0\u7684\u3002<\/p>\n<p>CSS\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>dot {\r\n    display: inline-block; \r\n    height: 1em; line-height: 1;\r\n    text-align: left;\r\n    vertical-align: -.25em;\r\n    overflow: hidden;\r\n}\r\ndot::before {\r\n    display: block;\r\n    content: '...\\A..\\A.';\r\n    white-space: pre-wrap;   <span style=\"color:green;\">\/* \u4e5f\u53ef\u4ee5\u662fwhite-space: pre *\/<\/span>\r\n    animation: dot 3s infinite step-start both;\r\n}\r\n@keyframes dot {\r\n    33% { transform: translateY(-2em); }\r\n    66% { transform: translateY(-1em); }\r\n}<\/pre>\n<p>HTML\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>\u8ba2\u5355\u63d0\u4ea4\u4e2d&lt;dot&gt;...&lt;\/dot&gt;<\/pre>\n<p>\u7136\u540e\u6210\u5c31\u5373\u8fbe\u6210\uff01\u5e76\u4e14IE6-IE9\u5b8c\u7f8e\u81ea\u52a8\u5411\u4e0b\u517c\u5bb9\uff08\u9759\u60013\u4e2a\u70b9\uff09\uff0cIE10+\u5c31\u662f\u52a8\u753b\u3002<\/p>\n<p>\u4f60\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/study\/201611\/animation-content-dot-dot-dot-wait.html\" target=\"_blank\">content\u5b57\u7b26\u751f\u6210\u914d\u5408CSS3 animation\u70b9\u70b9\u70b9\u52a8\u753bdemo<\/a><\/p>\n<h3>\u4e8c\u3001content\u6362\u884c\u6280\u672f\u662f\u77e5\u9053\u7684\uff0c\u5173\u952e\u662f\u521b\u610f\u548c\u601d\u8def<\/h3>\n<p>\u5982\u679c\u628a\u4e0a\u9762\u4f7f\u7528\u7684\u6280\u672f\u62c6\u5206\u4e0b\uff0c\u5176\u5b9e\u90fd\u662f\u77e5\u9053\u7684\u3002\u4e24\u4e2a\u8981\u70b9\uff0c\u4e00\u662fcontent\u5b57\u7b26\u5185\u5bb9\u751f\u6210\u7684\u6362\u884c\u5b9e\u73b0\uff0c\u4e8c\u662fCSS3 animation\u52a8\u753b\u3002<\/p>\n<p><strong>1. <\/strong>\u5173\u4e8e<code>content<\/code>\u6362\u884c\u6280\u672f\u5728\u6211\u4e4b\u524d\u7684\u8fd9\u7bc7\u201c<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2012\/03\/tip-css-multiline-display\/\">\u4f7f\u7528CSS(Unicode\u5b57\u7b26)\u8ba9inline\u6c34\u5e73\u5143\u7d20\u6362\u884c<\/a>\u201d\u6587\u7ae0\u6709\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u5176\u4e2d<code>'\\A'<\/code>\u5176\u5b9e\u6307\u7684\u662f\u6362\u884c\u7b26\u4e2d\u7684LF\u5b57\u7b26\uff0c\u5176unicode\u7f16\u7801\u662f<code>000A<\/code>\uff0c\u5728CSS <code>content<\/code>\u5c5e\u6027\u4e2d\u5219\u76f4\u63a5\u5199\u4f5c<code>'\\A'<\/code>\uff1b\u6362\u884c\u7b26\u9664\u4e86LF\u5b57\u7b26\u8fd8\u6709CR\u5b57\u7b26\uff0c\u5176Unicode\u7f16\u7801\u662f<code>000D<\/code>\uff0c\u5728CSS <code>content<\/code>\u5c5e\u6027\u4e2d\u5219\u76f4\u63a5\u5199\u4f5c<code>'\\D'<\/code>\u3002CR\u5b57\u7b26\u548cLF\u5b57\u7b26\u5206\u522b\u6307\u56de\u8f66\uff08CR\uff09\u548c\u6362\u884c\uff08LF\uff09\u3002<\/p>\n<p><strong>2. <\/strong>\u5173\u4e8eCSS3 <code>animation<\/code><a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?s=animation\">\u4ecb\u7ecd\u7684\u6587\u7ae0<\/a>\u5c31\u66f4\u591a\u4e86\u3002<\/p>\n<p>CSS\u8fd9\u4e48\u8bed\u8a00\u7684\u7cbe\u5f69\u4e4b\u5904\u5c31\u5728\u4e8e\uff0c\u8981\u60f3\u5b66\u5f97\u597d\uff0c\u4e0d\u4ec5\u9700\u8981\u6280\u672f\u79ef\u7d2f\uff0c\u7ec6\u8282\u624e\u5b9e\uff0c\u800c\u4e14\u8fd8\u9700\u8981\u521b\u610f\u548c\u601d\u8def\uff0c\u6240\u4ee5\uff0c\u6211\u5e38\u8bf4CSS\u8981\u60f3\u5b66\u5f97\u597d\u662f\u9700\u8981\u70b9\u90a3\u4e48\u4e0d\u53ef\u8a00\u55bb\u7684\u5929\u8d4b\u7684\uff0c\u6211\u60f3\u8fd9\u79cd\u5929\u8d4b\u5c31\u662f\u521b\u9020\u6027\u601d\u7ef4\u548c\u53d1\u6563\u6027\u601d\u7ef4\uff0c\u8fd9\u548c\u4e00\u677f\u4e00\u773c\u7684\u903b\u8f91\u8bed\u8a00\u4e0d\u4e00\u6837\uff0c\u6bd5\u7adf\u6211\u4eec\u662f\u4e3a\u7cbe\u5f69\u7eb7\u5448\u7684\u6548\u679c\u548c\u5404\u5f0f\u5404\u6837\u7684\u5e03\u5c40\u670d\u52a1\u7684\u3002<\/p>\n<p>\u56de\u5230\u8fd9\u91cc\uff0c\u6211\u6709\u5fc5\u8981\u597d\u597d\u53cd\u601d\u4e0b\uff0c\u5b57\u7b26\u6253\u70b9\u52a8\u753b\u6211\u8fd9\u4e9b\u5e74\u65f6\u4e0d\u65f6\u5c31\u601d\u8003\u6709\u6ca1\u6709\u66f4\u597d\u7684\u5b9e\u73b0\uff0c\u867d\u7136\u6211\u77e5\u9053<code>content<\/code>\u5185\u5bb9\u6362\u884c\u6280\u672f\u4ee5\u53ca\u719f\u77e5CSS3 animation\u5c5e\u6027\uff0c\u4f46\u662f\uff0c\u6211\u5374\u6ca1\u6709\u60f3\u5230\u8fd9\u79cd\u5b9e\u73b0\uff0c\u8bf4\u660e\u81ea\u5df1\u7684\u601d\u8def\u8fd8\u662f\u4e0d\u591f\u5f00\u9614\uff0c\u4e2a\u4e2d\u5173\u8054\u6ca1\u6709\u80fd\u591f\u8054\u7cfb\u5728\u4e00\u8d77\uff0c\u5509\uff0c\u5bf9\u81ea\u5df1\u4ea7\u751f\u4e86\u4e00\u4e1d\u4e1d\u7684\u6000\u7591\u2026\u2026<\/p>\n<p>\u672c\u6587\u5229\u7528<code>content<\/code>\u5b9e\u73b0\u5b57\u7b26\u6253\u70b9loading\u6548\u679c\u6211\u662f\u5728\u8fd9\u4e2agithub\u9879\u76ee\u770b\u5230\u7684\uff1a<a href=\"https:\/\/github.com\/tawian\/text-spinners\" target=\"_blank\">tawian\/text-spinners<\/a><\/p>\n<p>\u5f53\u7136\uff0c\u6211\u81ea\u5df1\u8fd8\u6709\u4e00\u4e1d\u6b23\u6170\u7684\uff0c\u5c31\u662f\u7ad9\u5728\u5de8\u4eba\u7684\u80a9\u4e0a\uff0c\u6211\u7ec6\u8282\u8981\u6bd4\u539f\u5b9e\u73b0\u8981\u597d\uff0c\u597d\u5728\u6ca1\u6709\u4f7f\u7528\u4efb\u4f55hack\u6280\u5de7\u5b9e\u73b0\u7684\u6240\u6709\u6d4f\u89c8\u5668\u7684\u5168\u517c\u5bb9\uff08\u4e0d\u652f\u6301animation\u7684\u6d4f\u89c8\u5668\u9759\u6001\u4e09\u4e2a\u70b9\uff09\uff0c\u539f\u6765\u7684\u5b9e\u73b0\u76f4\u63a5\u5ffd\u7565\u4e86IE9-IE6\u6d4f\u89c8\u5668\uff0c\u76f4\u63a5\u6ca1\u6709\u70b9\u3002<\/p>\n<p>\u539f\u6765\u7684\u5b9e\u73b0<code>content<\/code>\u662f\u4f7f\u7528\u7684<code>&lt;span&gt;<\/code>\u5143\u7d20\uff0cCSS\u90e8\u5206\u4f7f\u7528\u7684\u662f<code>::after<\/code>\u4f2a\u5143\u7d20\uff0c<code>display<\/code>\u8bbe\u7f6e\u4e3a<code>inline-table<\/code>\uff0c\u7b2c1\u884c\u662f<code>1<\/code>\u4e2a\u70b9\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>&lt;span class=\"loading\"&gt;&lt;\/span&gt;<\/pre>\n<pre>.loading::after {\r\n  display: inline-table;\r\n  content: \"\\A.\\A..\\A...\";\r\n  white-space: pre;\r\n  animation: spin4 2s steps(4) infinite;\r\n}<\/pre>\n<p>\u800c\u6211\u7684\u5b9e\u73b0\u7684\u662f\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684<code>&lt;dot&gt;<\/code>\u5143\u7d20\uff0cCSS\u90e8\u5206\u4f7f\u7528\u7684\u662f<code>::before<\/code>\u4f2a\u5143\u7d20\uff0c<code>display<\/code>\u8bbe\u7f6e\u4e3a<code>block<\/code>\uff0c\u7b2c1\u884c\u662f<code>3<\/code>\u4e2a\u70b9\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>&lt;dot&gt;...&lt;\/dot&gt;<\/pre>\n<pre>dot::before {\r\n  display: block;\r\n  content: '...\\A..\\A.';\r\n  white-space: pre-wrap;\r\n  animation: dot 3s infinite step-start both;\r\n}<\/pre>\n<p>\u4f7f\u7528\u81ea\u5b9a\u4e49<code>&lt;dot&gt;<\/code>\u5143\u7d20\u7684\u597d\u5904\u662fIE7,IE8\u6d4f\u89c8\u5668\u6839\u672c\u5c31\u4e0d\u8ba4\u8bc6\u8fd9\u4e2a\u5143\u7d20\uff0c\u76f8\u5173CSS\u4f1a\u5ffd\u7565\uff0c\u76f4\u63a5\u663e\u793a3\u4e2a\u70b9\uff1b\u4f7f\u7528<code>::before<\/code>\u4f2a\u5143\u7d20\uff0c<code>display<\/code>\u8bbe\u7f6e\u4e3a<code>block<\/code>\u539f\u56e0\u5728\u4e8e\u5176\u4ed6\u73b0\u4ee3\u6d4f\u89c8\u5668\u53ef\u4ee5\u628a\u539f\u6765\u7684<code>3<\/code>\u4e2a\u70b9\u63a8\u5230\u770b\u4e0d\u89c1\u7684\u6700\u4e0b\u9762\uff0c\u663e\u793a\u7684\u662f<code>content<\/code>\u63d2\u5165\u7684\u7b2c1\u884c\u7684<code>3<\/code>\u4e2a\u70b9\u3002\u4e8e\u662f\uff0c\u5168\u6d4f\u89c8\u5668\u90fd\u663e\u793a\u826f\u597d\u3002<\/p>\n<p>\u6709\u6b64\u53ef\u89c1\uff0c\u521b\u610f\u56fa\u7136\u91cd\u8981\uff0c\u57fa\u7840\u548c\u7ec6\u8282\u4e5f\u662f\u4e0d\u53ef\u5ffd\u89c6\u7684\uff0c\u8fd9\u6837\uff0c\u624d\u80fd\u5b9e\u73b0\u5b8c\u7f8e\u7684\u6548\u679c\u2014\u2014\u73b0\u5728\u8fd9\u79cd\u5b9e\u73b0\uff0c\u5916\u9762\u6807\u7b7e\u7684\u5bbd\u5ea6\u5c31\u662f<code>3<\/code>\u4e2a\u70b9\u7684\u5bbd\u5ea6\uff0c\u4e0d\u8981\u62c5\u5fc3\u8d85\u51fa\u6216\u526a\u88c1\uff0c\u5b57\u7b26\u5b9e\u73b0\uff0c\u548c\u524d\u9762\u7684\u6587\u5b57\u5b57\u4f53\uff0c\u989c\u8272\u4fdd\u6301\u4e00\u81f4\uff0c\u5b8c\u7f8e\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/201611\/wanmei.jpg\" width=\"320\" height=\"198\" alt=\"\u5b8c\u7f8e\" class=\"alignnone\" \/><\/p>\n<h3>\u4e09\u3001content\u5b57\u7b26\u751f\u6210\u914d\u5408CSS3 animation\u5404\u7c7b\u5b57\u7b26loading\u6548\u679c\u5b9e\u73b0<\/h3>\n<p>\u5176\u5b9e\uff0c<code>content<\/code>\u5b57\u7b26\u751f\u6210\u914d\u5408CSS3 <code>animation<\/code>\u53ef\u4ee5\u5b9e\u73b0\u7684\u4e0d\u4ec5\u4ec5\u662f\u6253\u70b9\u8fd9\u4e00\u79cd\u5b57\u7b26\u52a8\u753b\u6548\u679c\uff0c\u4f60\u4f7f\u7528\u5176\u4ed6\u4e00\u4e9b\u6709\u610f\u601d\u7684\u5b57\u7b26\u5c31\u80fd\u65f6\u95f4\u66f4\u591a\u6709\u610f\u601d\u7684loading\u6548\u679c\uff0c\u5982\u4e0b\u622a\u56fe\uff08\u56fe\u622a\u81ea<a href=\"https:\/\/tawian.io\/text-spinners\/\" target=\"_blank\">\u8fd9\u4e2a\u6f14\u793a\u9875\u9762<\/a>\uff09\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/201611\/2016-11-13_203610.png\" width=\"521\" height=\"831\" alt=\"\u5404\u7c7b\u5b57\u7b26\u52a8\u753b\u6548\u679c\" class=\"alignnone\" \/><\/p>\n<p>\u4f8b\u5982\uff0c\u6211\u4eec\u547d\u4ee4\u884c\u4e2d\u5e38\u89c1\u7684loading\u52a8\u753b\u5b9e\u73b0\u53ea\u8981<code>content<\/code>\u8bbe\u7f6e\u4e3a\u4e0b\u9762\u8fd9\u4e2a\u503c\u5c31\u53ef\u4ee5\uff1a<\/p>\n<pre>.loading::after {\r\n  display: inline-table;\r\n  <span style=\"color:#cd0000;\">content: \"\/\\A\u2013\\A\\\\\\A|\";<\/span>\r\n  white-space: pre;\r\n  animation: spin4 2s steps(4) infinite;\r\n}<\/pre>\n<p>\u8fd9\u91cc\u5c31\u4e0d\u4e00\u4e00\u4ecb\u7ecd\u4e86\uff0c\u6709\u5174\u8da3\u7684\u540c\u5b66\u53ef\u4ee5\u76f4\u63a5\u53bb\u8fd9\u4e2a\u9879\u76ee\u56f4\u89c2\u3002<\/p>\n<h3>\u56db\u3001\u7ed3\u675f\u8bed<\/h3>\n<p>\u5b66\u4e60\u548c\u6210\u957f\u5c31\u662f\u8fd9\u4e48\u56de\u4e8b\uff0c\u8eab\u5728\u8212\u9002\u533a\uff0c\u603b\u611f\u89c9\u81ea\u5df1\u633a\u597d\u7684\uff0c\u89c9\u5f97\u81ea\u5df1\u5e72\u6d3b\u9ebb\u5229\uff0c\u6280\u672f\u4e0d\u9519\uff0c\u5b9e\u9645\u4e0a\u8fd8\u5dee\u7684\u8fdc\u5462\u3002\u5c31\u597d\u6bd4\u8fd9\u91cc\u7684\u6253\u70b9\u52a8\u753b\u7684\u5b9e\u73b0\uff0c\u4ee5\u524d\u4f7f\u7528<code>text-shadow<\/code>\u5b9e\u73b0\u7684\u65f6\u5019\uff0c\u89c9\u5f97\u633a\u5389\u5bb3\uff0c\u4f69\u670d\u81ea\u5df1\u7684\u521b\u610f\u548c\u601d\u8def\uff1b\u7136\u540e\u4eca\u5e747\u6708\u4efd\u7814\u7a76<code>ch<\/code>\u5355\u4f4d\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u4e4b\u524d\u5934\u75bc\u7684\u5bbd\u5ea6\u5904\u7406\u6709\u4e86\u89e3\u51b3\u65b9\u6cd5\uff0c\u81ea\u8ba4\u4e3a\u5f88\u8d5e\u7684<code>text-shadow<\/code>\u5b9e\u73b0\u201c\u556a\u201d\u5f97\u6253\u8138\u4e86\uff0c\u7136\u540e\u89c9\u5f97<code>ch<\/code>\u5b9e\u73b0\u57fa\u672c\u4e0a\u5c31\u662f\u5230\u5934\u7684\u6700\u4f73\u5b9e\u73b0\uff1b\u7136\u540e\u624d\u77ed\u77ed4\u4e2a\u6708\uff0c\u53c8\u518d\u6b21\u6253\u8138\uff0c\u4f7f\u7528<code>content<\/code>\u6362\u884c\u5b57\u7b26\u6a21\u62df\u663e\u7136\u8981\u66f4\u4e0a\u4e00\u5c42\u697c\uff0c\u867d\u7136\u6b64\u523b\u81ea\u5df1\u53c8\u89c9\u5f97\u8fd9\u79cd\u5b9e\u73b0\u5e94\u8be5\u662f\u6700\u4f73\u5b9e\u73b0\u4e86\uff0c\u4f46\u6211\u5fc3\u91cc\u6e05\u695a\uff0c\u4ec0\u4e48\u65f6\u5019\u53c8\u4f1a\u51fa\u73b0\u66f4\u597d\u7684\u5b9e\u73b0\u6253\u8138\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/emtion\/pa.png\" width=\"150\" height=\"150\" alt=\"\u556a\u6253\u8138\" class=\"alignnone\" \/><\/p>\n<p>\u6240\u4ee5\uff0c\u6212\u9a84\u6212\u8e81\uff0c\u5b66\u65e0\u6b62\u5883\uff0c\u6c38\u4e0d\u81ea\u6ee1\uff01<\/p>\n<p>\u6700\u540e\uff0c\u6211\u4eec\u4e0d\u59a8\u628a\u81ea\u5df1\u7684\u601d\u7ef4\u53d1\u6563\u4e0b\uff0c\u4e0a\u9762\u8bf8\u591a\u5b57\u7b26loading\u867d\u7136\u9664\u4e86\u6c34\u5e73\u6253\u70b9\u52a8\u753b\u4ee5\u5916\uff0c\u5176\u4ed6\u7684\u6548\u679c\u90fd\u6bd4\u8f83\u7c97\u7cd9\uff0c\u96be\u4ee5\u76f4\u63a5\u5728\u9879\u76ee\u4e2d\u4f7f\u7528\uff0c\u4f46\u662f\uff0c\u8981\u77e5\u9053\uff0c\u6211\u4eec\u4e0d\u662f\u6709<code>icon fonts<\/code>\u6280\u672f\u5417\uff0c\u53ef\u4ee5\u628a\u7c97\u7cd9\u7684\u5b57\u7b26\u6620\u5c04\u6210\u7cbe\u81f4\u7684\u56fe\u5f62\u3002\u4e8e\u662f\u4e4e\uff0c\u6211\u4eec\u8981\u60f3\u5b9e\u73b0\u4e00\u4e9b\u66f4\u7ec6\u817b\u7684\u56fe\u5f62\u52a8\u753b\uff0c\u5c31\u5f88\u7b80\u5355\u5566\uff0c\u662f\u4e0d\u662f\u53ef\u4ee5\u641e\u4e2a\u81ea\u5b9a\u4e49\u7684\u56fe\u5f62\u5b57\u4f53\uff0c\u7136\u540e\u5229\u7528\u8fd9\u91cc\u7684loading\u539f\u7406\uff0c\u5f88\u591a\u5f88\u53ef\u7231\u7ec6\u817b\u7684\u52a8\u753b\u6548\u679c\u662f\u4e0d\u662f\u5c31\u51fa\u6765\u4e86\uff01\u6bd4\u65b9\u8bf4\u70b9\u8d5e\u7684\u65f6\u5019\uff0c\u653e\u70b9\u793c\u82b1\uff1b\u70b9\u51fb\u5220\u9664\u56fe\u6807\uff0c\u5783\u573e\u6876\u6253\u5f00\u52a8\u753b\uff0c\u5bf9\u4e0d\u5bf9\uff0c\u5b9e\u73b0\u90fd\u4e0d\u662f\u96be\u4e8b\uff0c\u90fd\u53ef\u4ee5\u7528\u8d77\u6765\uff01\u8fd9\u79cd\u5b9e\u73b0\u6bd4\u4ee5\u524d<code>background-image<\/code>\u6216\u8005JS\u5b9e\u73b0\u8981\u66f4\u52a0\u7b80\u5355\u53ef\u63a7\uff08\u5927\u5c0f\uff0c\u989c\u8272\u4ec0\u4e48\u7684\uff09\uff0c\u53cd\u6b63\u6211\u662f\u4f1a\u627e\u673a\u4f1a\u5728\u9879\u76ee\u4e2d\u7528\u4e00\u7528\u7684\uff0c\u4f60\u4eec\u81ea\u5df1\u770b\u7740\u529e\u5566\uff01\u563b\u563b\u2026\u2026<\/p>\n<p>\u611f\u8c22\u9605\u8bfb\uff0c\u6b22\u8fce\u4ea4\u6d41\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/201611\/14.png\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u4f1a\u7ecf\u5e38\u66f4\u65b0\u77e5\u8bc6\u70b9\u4ee5\u53ca\u4fee\u6b63\u4e00\u4e9b\u9519\u8bef\uff0c\u56e0\u6b64\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u539f\u51fa\u5904\uff0c\u65b9\u4fbf\u6eaf\u6e90\uff0c\u907f\u514d\u9648\u65e7\u9519\u8bef\u77e5\u8bc6\u7684\u8bef\u5bfc\uff0c\u540c\u65f6\u6709\u66f4\u597d\u7684\u9605\u8bfb\u4f53\u9a8c\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=5753\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=5753<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CSS content\u5b57\u7b26\u751f\u6210\u914d\u5408CSS3 animation\u53ef\u4ee5\u5404\u7c7b\u5b57\u7b26loading\u6548\u679c\u5b9e\u73b0\uff0c\u4e00\u8d77\u8fc7\u6765\u770b\u770b\u773c\u754c\uff0c\u5b66\u4e60\u5b66\u4e60\u65b0\u7684\u5b9e\u73b0\u601d\u8def\u5427~~<\/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":[319,366,531,365,693,216,675,966],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/5753"}],"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=5753"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/5753\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=5753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=5753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=5753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}