{"id":8701,"date":"2019-06-08T00:09:31","date_gmt":"2019-06-07T16:09:31","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=8701"},"modified":"2019-06-08T00:59:41","modified_gmt":"2019-06-07T16:59:41","slug":"better-css-scroll-indicator","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2019\/06\/better-css-scroll-indicator\/","title":{"rendered":"\u66f4\u597d\u7684\u7eafCSS\u6eda\u52a8\u6307\u793a\u5668\u6280\u672f\u5b9e\u73b0"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=8701\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=8701<\/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<\/p>\n<p><script>window.wxShareImgUrl = 'https:\/\/www.zhangxinxu.com\/study\/image\/share\/201906-scroll-indicator.jpg';<\/script><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/statue-scroll3.jpg\" width=\"484\" height=\"300\" alt=\"\u6eda\u52a8\u6307\u793a\u5668\u5c01\u9762\u56fe\" class=\"alignright thumb clip size-medium\" \/><\/p>\n<h3>\u4e00\u3001CSS\u6eda\u52a8\u6307\u793a\u5668<\/h3>\n<p>\u6eda\u52a8\u6307\u793a\u5668\u6307\u7684\u662f\u9875\u9762\u7684\u9876\u7aef\u4f1a\u6709\u4e00\u4e2a\u8fdb\u5ea6\u6761\uff0c\u6307\u793a\u6eda\u52a8\u7684\u8fdb\u5ea6\u3002\u6548\u679c\u5982\u4e0bGIF\u6240\u793a\uff08\u70b9\u51fb\u64ad\u653e\uff09\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/scroll-indicator-s.png\" width=\"250\" height=\"365\" alt=\"\u6eda\u52a8\u8ba1\u6570\u5668\u793a\u610f\u6548\u679c\" class=\"alignnone size-medium\" onclick=\"this.src='\/\/image.zhangxinxu.com\/image\/blog\/201906\/scroll-indicator-ss.gif';\" \/><\/p>\n<p>CSS\u6eda\u52a8\u6307\u793a\u5668\u6307\u7684\u662f\u4e0d\u501f\u52a9JavaScript\uff0c\u7eafCSS\u5b9e\u73b0\u6eda\u52a8\u8fdb\u5ea6\u6548\u679c\u3002<\/p>\n<h3>\u4e8c\u3001\u4f20\u7edf\u7684\u5b9e\u73b0\u65b9\u6cd5<\/h3>\n<p>\u4f20\u7edfCSS\u5b9e\u73b0\u65b9\u6cd5\u7531\u4e00\u4e2a\u540d\u53eb Mike\u7684\u4eba\u9996\u5148\u63d0\u51fa\uff0c\u65f6\u95f4\u5e94\u8be5\u662f16\u5e74\uff0c\u8fd9\u4e2aCodePen\u76ee\u524d\u5df2\u7ecf\u6709\u5341\u51e0\u4e07\u7684\u8bbf\u95ee\u91cf\uff1a<a href=\"https:\/\/codepen.io\/MadeByMike\/pen\/ZOrEmr\" rel=\"noopener nofollow\" target=\"_blank\">CSS only scroll indicator<\/a><\/p>\n<p>\u4f20\u7edf\u7684CSS\u5b9e\u73b0\u975e\u5e38\u6709\u521b\u610f\uff0c\u5177\u4f53\u539f\u7406\u5982\u4e0b\u3002<\/p>\n<p>\u5728body\u6807\u7b7e\u4e0a\u5199\u4e00\u4e2a\u5bf9\u89d2\u7684\u7ebf\u6027\u6e10\u53d8\uff0c\u7136\u540e\u7528\u4e00\u4e2a\u767d\u8272\u7684\u56fa\u5b9a\u5b9a\u4f4d\u7684\u6d6e\u5c42\u8986\u76d6\u5728\u4e0a\u9762\uff0cCSS\u4ee3\u7801\u793a\u610f\u5982\u4e0b\uff1a<\/p>\n<pre>body{    \r\n    background: linear-gradient(to right top, teal 50%, white 50%);\r\n    background-size: 100% calc(100% - 100vh);\r\n    background-repeat: no-repeat;\r\n}\r\n\r\nbody::before{\r\n    content:'';\r\n    position: fixed;\r\n    top: 5px;\r\n    bottom: 0;\r\n    width: 100%;\r\n    z-index: -1;\r\n    background: white;\r\n}<\/pre>\n<p><code>::before<\/code>\u4f2a\u5143\u7d20\u6a21\u62df\u7684\u5c31\u662f\u767d\u8272\u7684\u8986\u76d6\u5c42\uff0c\u4e0d\u8fc7\u8fd9\u4e2a\u8986\u76d6\u5c42\u5e76\u4e0d\u662f\u5b8c\u5168\u8986\u76d6\uff0c\u4e0a\u8fb9\u7f18\u9732\u51fa\u4e86\u4e00\u70b9\u70b9\u7684\u8ddd\u79bb\uff0c\u8fd9\u4e2a\u8ddd\u79bb\u53ef\u4ee5\u900f\u51fabody\u6e10\u53d8\u80cc\u666f\uff0c\u968f\u7740\u6eda\u52a8\u8fdb\u884c\uff0c\u4f1a\u51fa\u73b0\u7c7b\u4f3c\u8fdb\u5ea6\u6761\u4e00\u6837\u7684\u6548\u679c\u3002\u5982\u679c\u6211\u4eec\u628a\u767d\u8272\u8986\u76d6\u5c42\u7684\u900f\u660e\u5ea6\u964d\u4f4e\uff0c\u5927\u5bb6\u5c31\u53ef\u4ee5\u770b\u61c2\u5b9e\u73b0\u7684\u539f\u7406\u4e86\uff0c\u5982\u4e0bGIF\u5f55\u5c4f\u6548\u679c\uff08\u70b9\u51fb\u64ad\u653e\uff0c1M\u5927\u5c0f\uff09\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/scroll-indicator-2.png\" width=\"250\" height=\"315\" alt=\"\u4f20\u7edf\u6307\u793a\u5668\u539f\u7406\u793a\u610f\u56fe\" class=\"alignnone size-medium\" onclick=\"this.src='\/\/image.zhangxinxu.com\/image\/blog\/201906\/scroll-indicator-2-ss.gif';\" \/><\/p>\n<h3>\u4e09\u3001\u4f20\u7edf\u5b9e\u73b0\u65b9\u6cd5\u7684\u81f4\u547d\u7f3a\u9677<\/h3>\n<p>\u4f20\u7edf\u7684css\u6eda\u52a8\u6307\u793a\u5668\u6548\u679c\u867d\u7136\u65b9\u6cd5\u548c\u601d\u8def\u975e\u5e38\u7cbe\u5999\uff0c\u4f46\u662f\u5374\u6709\u81f4\u547d\u7684\u7f3a\u9677\uff0c\u5bfc\u81f4\u51e0\u4e4e\u65e0\u6cd5\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u5e94\u7528\u3002<\/p>\n<p>\u81f4\u547d\u7f3a\u9677\u662f\uff1a<\/p>\n<ol>\n<li>\u9875\u9762\u5185\u5bb9\u4e0d\u80fd\u6709\u80cc\u666f\u8272\u6216\u80cc\u666f\u56fe\uff01<\/li>\n<li>body\u81ea\u8eab\u4e5f\u4e0d\u80fd\u6709\u80cc\u666f\u56fe\uff01<\/li>\n<\/ol>\n<p>\u7531\u4e8e\u5b58\u5728\u4e0a\u9762\u8fd9\u4e24\u70b9\u6027\u8d28\uff0c\u5b9e\u9645\u5f00\u53d1\u573a\u666f\u53d8\u5e7b\u83ab\u6d4b\uff0c\u9875\u9762\u5185\u5bb9\u6709\u4e2a\u80cc\u666f\u8272\u80cc\u666f\u56fe\u4ec0\u4e48\u7684\u592a\u6b63\u5e38\u4e0d\u8fc7\u4e86\uff0c\u5c45\u7136\u4f1a\u5f71\u54cdCSS\u6eda\u52a8\u6307\u793a\u5668\u7684\u6548\u679c\uff0c\u663e\u7136\u8fd9\u4e2a\u6280\u672f\u6ca1\u6709\u5b9e\u7528\u6027\uff0c\u5c31\u662f\u4e2a\u5f00\u9614\u773c\u754c\u7684\u73a9\u5177\u800c\u5df2\u3002<\/p>\n<p>\u597d\u5728\u6280\u672f\u5728\u53d1\u5c55\uff0c\u65f6\u4ee3\u5728\u53ec\u5524\uff0c\u6211\u81ea\u5df1\u82b1\u65f6\u95f4\u7422\u78e8\u4e86\u4e00\u4e0b\uff0c\u6709\u6ca1\u6709\u4ec0\u4e48\u65b9\u6cd5\u53ef\u4ee5\u5316\u8150\u673d\u4e3a\u795e\u5947\uff0c\u907f\u5f00\u4e0a\u9762\u8fd9\u4e9b\u4e0d\u8db3\uff0c\u8ba9CSS\u6eda\u52a8\u53ea\u662f\u5668\u80fd\u591f\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u5927\u653e\u5149\u5f69\u3002\u563f\uff0c\u8fd8\u771f\u8ba9\u6211\u60f3\u5230\u4e86\uff0c\u4e00\u756a\u5b9e\u8df5\u4e0b\u6765\u786e\u5b9e\u53ef\u884c\uff0c\u8fd9\u91cc\u7ed9\u5927\u5bb6\u5206\u4eab\u4e0b\u3002<\/p>\n<h3>\u56db\u3001\u6211\u60f3\u5230\u7684\u66f4\u597d\u7684\u5b9e\u73b0<\/h3>\n<p>\u6211\u60f3\u5230\u7684\u8fd9\u4e2a\u6280\u672f\u5b9e\u73b0\u533a\u522b\u5c31\u5728\u4e8e\u5bf9\u89d2\u7ebf\u6027\u6e10\u53d8\u4e0d\u662f\u5199\u5728body\u6807\u7b7e\u4e0a\u7684\uff0c\u800c\u662f\u4e00\u4e2a\u666e\u901a\u7684div\u5143\u7d20\u4e0a\u3002<\/p>\n<p>\u5177\u4f53\u64cd\u4f5c\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u5728&lt;body&gt;\u6807\u7b7e\u5185\u63d2\u5165\u6307\u793a\u5668\u5143\u7d20\uff1a\n<pre>&lt;div class=\"indicator\"&gt;&lt;\/div&gt;<\/pre>\n<\/li>\n<li>\u7c98\u8d34\u5982\u4e0b\u6240\u793a\u7684CSS\u4ee3\u7801\uff1a\n<pre>body {\r\n    position: relative;\r\n}\r\n.indicator {\r\n    position: absolute;\r\n    top: 0; right: 0; left: 0; bottom: 0;\r\n    background: linear-gradient(to right top, teal 50%, transparent 50%) no-repeat;\r\n    background-size: 100% calc(100% - 100vh);\r\n    z-index: 1;\r\n    pointer-events: none;\r\n    mix-blend-mode: darken;\r\n}\r\n.indicator::after {\r\n    content: '';\r\n    position: fixed;\r\n    top: 5px; bottom: 0; right: 0; left: 0;\r\n    background: #fff;\r\n    z-index: 1;\r\n}<\/pre>\n<\/li>\n<\/ol>\n<p>\u4e00\u4e2a\u66f4\u597d\u7684CSS\u6eda\u52a8\u6307\u793a\u5668\u6548\u679c\u5c31\u5b9e\u73b0\u4e86\uff0c\u773c\u89c1\u4e3a\u5b9e\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/study\/201903\/css-idea\/behavior-indicator.php?aside=0\" rel=\"noopener\" target=\"_blank\">\u66f4\u597d\u7684\u7eafCSS\u6eda\u52a8\u6307\u793a\u5668demo<\/a><\/p>\n<p>GIF\u5f55\u5c4f\u6548\u679c\u5982\u4e0b\uff08\u89c2\u5bdf\u6700\u4e0a\u8fb9\u7f18\uff09\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/scroll-indicator-better-s.gif\" width=\"366\" height=\"604\" alt=\"\u6211\u7684\u66f4\u597d\u7684CSS\u6eda\u52a8\u6307\u793a\u5668\" class=\"alignnone size-medium\" \/><\/p>\n<p><strong>\u539f\u7406\u8bf4\u660e<\/strong><\/p>\n<p>\u4f20\u7edfCSS\u6eda\u52a8\u6307\u793a\u5668\u4e3a\u4e86\u9632\u6b62\u5bf9\u89d2\u6e10\u53d8\uff08\u4e5f\u5c31\u662f\u6eda\u52a8\u8fdb\u5ea6\u6761\uff09\u7684\u8986\u76d6\u9875\u9762\u4e0a\u7684\u5143\u7d20\u5185\u5bb9\uff0c\u56e0\u6b64\u5199\u5728\u4e86\u6700\u5e95\u5c42\u7684body\u5143\u7d20\u4e0a\uff0c\u8fd9\u5c31\u5bfc\u81f4\u5982\u679cbody\u5143\u7d20\u5185\u7684\u666e\u901a\u5143\u7d20\u5185\u5bb9\u6709\u80cc\u666f\u8272\uff0c\u6216\u8005\u80cc\u666f\u56fe\u4e4b\u7c7b\u7684\uff0c\u5c31\u4f1a\u8986\u76d6\u8fdb\u5ea6\u6761\uff0c\u4ea7\u751f\u81f4\u547d\u7f3a\u9677\u3002<\/p>\n<p>\u6211\u7684\u4f18\u5316\u65b9\u6cd5\u662f\u628a\u5bf9\u89d2\u6e10\u53d8\uff08\u4e5f\u5c31\u662f\u6eda\u52a8\u8fdb\u5ea6\u6761\uff09\u8fde\u540c\u91cc\u9762\u7684\u767d\u8272\u8986\u76d6\u5c42\u5199\u5728\u4e86\u666e\u901a\u5143\u7d20\u7684\u4e0a\u9762\uff0c\u8fd9\u6837\u907f\u5f00\u88ab\u8986\u76d6\u7684\u81f4\u547d\u7f3a\u9677\u3002\u4f46\u662f\u8fd9\u6837\u5b9e\u73b0\u5e26\u6765\u53e6\u5916\u4e00\u4e2a\u95ee\u9898\uff0c\u9875\u9762\u7684\u5185\u5bb9\u90fd\u88ab\u767d\u8272\u56fe\u5c42\u8986\u76d6\u4e86\uff0c\u90a3\u9875\u9762\u5185\u5bb9\u5c82\u4e0d\u662f\u90fd\u770b\u4e0d\u89c1\u4e86\uff1f\u4e0d\u8981\u62c5\u5fc3\uff0c\u6709CSS\u58f0\u660e\u53ef\u4ee5\u8ba9\u767d\u8272\u7684\u56fe\u5c42\u53d8\u6210\u900f\u660e\uff0c\u90a3\u5c31\u662f<code>mix-blend-mode:darken<\/code>\uff0c\u4e5f\u5c31\u662fdarken\u6df7\u5408\u6a21\u5f0f\u3002darken\u6df7\u5408\u6a21\u5f0f\u7684\u6df7\u5408\u65b9\u5f0f\u5f88\u597d\u7406\u89e3\uff0c\u4e24\u4e2a\u989c\u8272\u8fdb\u884c\u6df7\u5408\uff0c\u54ea\u4e2a\u989c\u8272\u6df1\u5c31\u4f7f\u7528\u54ea\u4e2a\u989c\u8272\uff1f<\/p>\n<p>\u8981\u77e5\u9053\u6240\u6709\u7684\u989c\u8272\u91cc\u9762\u6700\u6d45\u7684\u5c31\u662f\u767d\u8272\uff0c\u4e8e\u662f\u6211\u4eec\u53ea\u8981\u628a\u6211\u4eec\u7684\u767d\u8272\u8986\u76d6\u5c42\u7684\u6df7\u5408\u6a21\u5f0f\u8bbe\u7f6e\u4e3adarken\uff0c\u90a3\u5fc5\u7136\u6700\u7ec8\u5448\u73b0\u51fa\u6765\u7684\u989c\u8272\u4e00\u5b9a\u662f\u8986\u76d6\u5c42\u4e0b\u9762\u5143\u7d20\u5185\u5bb9\u7684\u989c\u8272\uff0c\u6362\u53e5\u8bdd\u8bf4\u6211\u4eec\u7684\u767d\u8272\u900f\u660e\u8986\u76d6\u5c42\u53d8\u900f\u660e\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/2019-06-07_231252.png\" width=\"600\" height=\"244\" alt=\"\u539f\u7406\u793a\u610f\u56fe\" class=\"alignnone size-medium\" \/><\/p>\n<h3>\u4e94\u3001\u5176\u4ed6\u8bf4\u660e\u548c\u7ed3\u8bed<\/h3>\n<p>CSS\u6eda\u52a8\u6307\u793a\u5668\u8981\u60f3\u6548\u679c\u826f\u597d\uff0c\u9700\u8981\u6ce8\u610f\u4e24\u70b9\uff1a<\/p>\n<ol>\n<li>\u8fdb\u5ea6\u6761\u7684\u989c\u8272\u5c3d\u91cf\u53d6\u6df1\u8272\uff0c\u56e0\u4e3a\u672c\u8eab\u5305\u542bdarken\u6df7\u5408\u6a21\u5f0f\uff0c\u5982\u679c\u989c\u8272\u8fc7\u6d45\uff0c\u5f88\u5bb9\u6613\u88ab\u5e95\u90e8\u7684\u5185\u5bb9\u989c\u8272\u7ed9\u6df7\u5408\u3002<\/li>\n<li>CSS\u6eda\u52a8\u6307\u793a\u5668\u9700\u8981\u5728\u9875\u9762\u6eda\u52a8\u9ad8\u5ea6\u8d85\u8fc7\u4e00\u5c4f\u7684\u65f6\u5019\u624d\u51fa\u73b0\u3002\u539f\u56e0\u6709\u4e24\u65b9\u9762\uff1a\u4e00\u662f\u5982\u679c\u6eda\u52a8\u9ad8\u5ea6\u8fc7\u5c0f\uff0c\u6ca1\u6709\u5fc5\u8981\u4f7f\u7528\u6eda\u52a8\u6307\u793a\u5668\uff1b\u4e8c\u662f\u6eda\u52a8\u6307\u793a\u5668\u672c\u8d28\u4e0a\u662f\u4e00\u4e2a\u6e10\u53d8\uff0c\u5982\u679c\u6eda\u52a8\u9ad8\u5ea6\u4e0d\u8db3\uff0c\u5219\u8fdb\u5ea6\u6761\u7684\u8fb9\u7f18\u4f1a\u8fc7\u4e8e\u503e\u659c\u800c\u5bfc\u81f4\u663e\u793a\u6548\u679c\u4e0d\u5b8c\u7f8e\u3002\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201906\/2019-06-07_233640.png\" width=\"366\" height=\"141\" alt=\"\u8fc7\u4e8e\u503e\u659c\u7684\u6548\u679c\u793a\u610f\" class=\"alignnone size-medium\" \/><\/li>\n<\/ol>\n<p>\u672c\u6587\u5185\u5bb9\u5b9e\u9645\u4e0a\u5e94\u8be52\u4e2a\u6708\u524d\u5c31\u5f00\u59cb\u6392\u671f\u4e86\uff08\u7b2c\u4e94\u5c4aCSS\u5927\u4f1a\u5206\u4eab\u5185\u5bb9\uff09\uff0c\u4e00\u76f4\u5230\u4eca\u5929\u624d\u6392\u5230\u66f4\u65b0\uff0c\u4e8b\u60c5\u592a\u591a\u4e86\uff0c\u60f3\u505a\u7684\u4e8b\u60c5\u5806\u79ef\u5982\u5c71\uff0c\u5468\u66f4\u7684\u5c0f\u8bf4\u5df2\u7ecf\u4e00\u4e2a\u6708\u6ca1\u5199\u4e86\uff0c\u8981\u5199\u7684\u516c\u4f17\u53f7\u6587\u7ae0\u4e5f\u6709\u597d\u51e0\u4e2a\uff0c\u8fd8\u4e0d\u77e5\u9053\u6392\u5230\u4ec0\u4e48\u65f6\u5019\u3002\u4eca\u65e5\u4e24\u66f4\uff0c\u8fd8\u67095\u7bc7\u6587\u7ae0\u4e89\u53d6\u7aef\u5348\u5b8c\u6210\uff0c\u4e0d\u8fc7\u4f30\u8ba1\u5199\u5b8c3\u7bc7\u4e0d\u9519\uff0c\u56e0\u4e3a\u7aef\u5348\u8fd8\u7ed9\u81ea\u5df1\u5b89\u6392\u4e86\u4e2a\u652f\u4ed8\u5f00\u53d1\u9700\u6c42\uff0c\u8fd8\u67092\u7bc7\u53ea\u80fd\u4e0b\u5468\u4e86\uff0c\u90a3\u5c0f\u8bf4\u600e\u4e48\u529e\u5462\uff1f\u8fd8\u6709\u516c\u4f17\u53f7\u6587\u7ae0\uff1f\u5929\u54ea\uff01\u4e0b\u4e0b\u5468\u8fd8\u8981\u53bb\u5317\u4eac\u505a\u5206\u4eab\uff0c\u597d\u5728\u4e00\u5206\u4ed8\u51fa\u8fd8\u6709\u534a\u5206\u7684\u6536\u83b7\u7684\u3002<\/p>\n<p>\u52a0\u6cb9\u52a0\u6cb9\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/1f6a9.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=8701\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=8701<\/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\/201906\/statue-scroll3.jpg\" width=\"161\" height=\"100\" alt=\"\u6eda\u52a8\u6307\u793a\u5668\u5c01\u9762\u56fe\" class=\"alignright\" loading=\"lazy\" \/><\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u7eafCSS\u663e\u793a\u9875\u9762\u6eda\u52a8\u767e\u5206\u6bd4\u8fdb\u5ea6\uff0c\u4f20\u7edf\u5b9e\u73b0\u662f\u5728body\u6807\u7b7e\u4e0a\u505a\u6587\u7ae0\uff0c\u4f46\u6709\u81f4\u547d\u7f3a\u9677\uff0c\u540e\u6765\u6211\u501f\u52a9\u6df7\u5408\u6a21\u5f0f\u5b9e\u73b0\u4e86\u4e00\u79cd\u65b0\u65b9\u6cd5\uff0c\u6b64\u65b9\u6cd5\u53ef\u4ee5\u89c4\u907f\u4f20\u7edf\u5b9e\u73b0\u7684\u4e0d\u8db3\uff0c\u4f7f\u7eafCSS\u6eda\u52a8\u6307\u793a\u5668\u6548\u679c\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u5e94\u7528\u6210\u4e3a\u4e86\u53ef\u80fd\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":[161,1271,1435,1436,994,661,272,124,1009],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/8701"}],"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=8701"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/8701\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=8701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=8701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=8701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}