{"id":3813,"date":"2013-11-29T20:36:24","date_gmt":"2013-11-29T12:36:24","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=3813"},"modified":"2018-01-02T03:37:23","modified_gmt":"2018-01-01T19:37:23","slug":"css-css3-box-shadow-%e7%9b%92%e9%98%b4%e5%bd%b1-%e5%9b%be%e5%bd%a2%e7%94%9f%e6%88%90%e6%8a%80%e6%9c%af","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2013\/11\/css-css3-box-shadow-%e7%9b%92%e9%98%b4%e5%bd%b1-%e5%9b%be%e5%bd%a2%e7%94%9f%e6%88%90%e6%8a%80%e6%9c%af\/","title":{"rendered":"CSS3 box-shadow\u76d2\u9634\u5f71\u56fe\u5f62\u751f\u6210\u6280\u672f"},"content":{"rendered":"<p>by <a href=\"http:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"http:\/\/www.zhangxinxu.com\/\">http:\/\/www.zhangxinxu.com<\/a><br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=3813\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=3813<\/a><\/p>\n<p><span class=\"s\">\u65c1\u767d\uff1a2013\u5e7411\u670828\u65e5\uff0c\u540e\u5bab\u8336\u8bdd\u4f1a\u6b63\u5982\u706b\u5982\u837c\u8fdb\u884c\u4e2d\u2026\u2026<\/span><\/p>\n<h3>\u4e00\u3001\u6625\u82b1\u79cb\u6708\u4f55\u65f6\u4e86\uff0cbox-shadow\u77e5\u591a\u5c11\uff1f<\/h3>\n<p>\u4e00\u7740\u773c\uff0c\u5df2\u662f\u4e8c\u66f4\u65f6\u5206\u4e86\u3002\u8fd9\u65e5\u5b50\u597d\u6bd4\u6d41\u6c34\u7684\u6c99\uff0c\u51cb\u8c22\u7684\u82b1\uff0c\u4e00\u6643\u90a3\uff0c\u5c31\u8fc7\u53bb\u4e86\u3002\u60f3\u6765\uff0c\u8fd9\u4e9b\u5e74\u6708\u4e5f\u7b97\u52b3\u5fc3\u52b3\u529b\uff0c\u7ec8\u5f52\u5b66\u5230\u70b9\u4ec0\u4e48\uff0c\u4e5f\u7b97\u5fc3\u4e2d\u6709\u6240\u6170\u85c9\u3002<\/p>\n<p>\u8981\u95ee\u6240\u5b66\u4e4b\u7269\uff0c\u5012\u4e5f\u6ca1\u51e0\u591a\u591f\u53f0\u9762\u7684\uff0c\u65e0\u975e\u9875\u9762\u4e0a\u7ee3\u7ee3\u82b1\uff0c\u5356\u5356\u840c\uff0c\u8ba8\u8ba8\u603b\u76d1\u5927\u4eba\u3001\u4ea7\u54c1\u5927\u4eba\u7684\u6b22\u5fc3\u3002\u82e5\u8bf8\u4f4d\u59d0\u59b9\u6709\u5fc3\u60f3\u8ba8\u6559\u4e00\u4e9b\uff0c\u672c\u5bab\u4ea6\u65e0\u85cf\u533f\u4e4b\u5fc5\u8981\uff0c\u5fc5\u5f53\u77e5\u65e0\u4e0d\u8a00\u8a00\u65e0\u4e0d\u5c3d\u3002<\/p>\n<p>\u8bf8\u4f4d\u59d0\u59b9\u90fd\u77e5\u6653\u7684\uff0c\u672c\u5bab\u4e00\u5411\u4e8b\u52a1\u7e41\u591a\uff0c\u8fd8\u8981\u670d\u4f8d\u7687\u4e0a\u3002\u6545\u8fd1\u65e5\u5e76\u65e0\u663e\u8d6b\u4e4b\u6240\u5b66\uff0c\u7136\u800c\uff0c\u5b9b\u82e5\u873b\u8713\u70b9\u6c34\u4e4b\u5fc3\u5f97\u5012\u6709\u4e00\u756a\u3002\u672c\u5bab\u5bfb\u601d\u7740\uff0c\u5176\u82e5\u80fd\u4e0e\u8bf8\u59d0\u59b9\u5171\u4eab\u4e5f\u662f\u6781\u597d\u7684\u3002<\/p>\n<p>\u65e0\u8bba\u662f\u65b0\u6765\u7684\uff0c\u8fd8\u662f\u5bab\u91cc\u5446\u4e86\u6709\u4e9b\u5e74\u6570\u7684\uff0c\u5e94\u90fd\u77e5\u6653<code>box-shadow<\/code>\uff0c\u76d2\u9634\u5f71\uff0cweb\u9875\u9762\u4e0a\u7ee3\u82b1\u4ea7\u751f\u903c\u771f\u9634\u5f71\u7528\u7684\u3002\u6211\u63d0\u8fd9\u4e2a\u5012\u4e0d\u662f\u60f3\u4f20\u6388\u4f7f\u7528\u4e4b\u6cd5\uff0c\u4ec5\u4ec5\u662f\u63d0\u9192\u4e0b<code>box-shadow<\/code>\u5176\u4e00\u91cd\u8981\u7279\u70b9\u2014\u2014<strong>\u53e0\u52a0\u6027<\/strong>\uff01<\/p>\n<p>\u4e0a\u56de\uff0c\u5439\u67ef\u683c\u683c\u634e\u6765\u81ea\u5df1\u7684\u6309\u94ae\u5c0f\u4f5c\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201311\/2013-11-29_005404.png\" width=\"224\" height=\"66\" alt=\"box-shadow\u6295\u5f71\u91cd\u53e0\u4e0b\u7684\u6548\u679c \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" class=\"alignnone\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201311\/2013-11-29_093850.png\" width=\"376\" height=\"258\" alt=\"\u53e0\u52a0\u7684\u76d2\u9634\u5f71\u6548\u679c\u4ee3\u7801\u793a\u610f \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" class=\"alignnone\" \/><\/p>\n<p>\u5373\u5229\u7528<code>box-shadow<\/code>\u201c\u53e0\u52a0\u6027\u201d\uff08\u591a\u4e2a\u9634\u5f71\u91cd\u53e0\uff09\uff0c\u624d\u5f97\u7acb\u4f53\u6309\u94ae\u4e4b\u6548\u679c\u3002\u7136\uff0c\u8eab\u5728\u5e90\u5c71\uff0c\u969c\u53f6\u95ed\u76ee\u3002\u7acb\u4f53\u4e4b\u6548\u4fe8\u7136\u6295\u5f71\u4e4b\u5f62\uff0c\u53f8\u7a7a\u89c1\u60ef\u4e4b\u5e38\u6001\uff0c\u5b9b\u82e5\u6c34\u6c7d\u4f3c\u8f7b\u70df\uff0c\u968f\u98ce\u7686\u6563\u4e4b\uff0c\u6545\u8bf8\u4f4d\u96be\u514d\u4f1a\u5ffd\u7565\u201c\u53e0\u52a0\u201d\u4e4b\u6f5c\u529b\uff0c\u4ee5\u5e38\u6001\u5e38\u6548\u5b9a\u91cf\u4e4b\u3002\u5b9e\u5219\uff0c\u53e0\u52a0\u4e4b\u6f5c\u529b\u60ca\u4e3a\u5929\u4eba\uff0c\u5176\u6548\u7edd\u975e\u6c34\u6c7d\u82e5\u8f7b\u70df\uff0c\u800c\u662f\u6c34\u6ef4\u53d8\u5229\u5251\u3002<\/p>\n<h3>\u4e8c\u3001\u5c0f\u697c\u6628\u591c\u53c8\u4e1c\u98ce\uff0c\u65e7\u6587\u4e0d\u582a\u56de\u9996\u6708\u660e\u4e2d<\/h3>\n<p>\u6628\u513f\u4e2a\u8fd9\u8427\u51b7\u7684\u4e1c\u5317\u98ce\u53c8\u662f\u5439\u4e86\u4e00\u5bbf\uff0c\u8ba9\u672c\u5bab\u4e0d\u5f97\u81ea\u4e3b\u60f3\u8d774\u5e74\u524d\uff0c\u672c\u5bab\u521a\u8fdb\u5bab\u90a3\u4f1a\u513f\u7684\u4e00\u4e9b\u5f80\u4e8b\u3002\u90a3\u4e5f\u662f\u4e2a\u5bd2\u98ce\u8427\u745f\u7684\u591c\u665a\uff0c\u767e\u65e0\u804a\u8d56\uff0c\u79c9\u70db\u5199\u4e0b\u201c<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=398\">\u50cf\u7d20\u7684\u4e16\u754c\u53ca\u5176\u5728web\u5f00\u53d1\u5236\u4f5c\u4e2d\u7684\u5e94\u7528<\/a>\u201d\u4e00\u6587\u3002\u8bf8\u4f4d\u59d0\u59b9\u82e5\u6709\u5174\u8da3\uff0c\u4e0d\u59a8\u518d\u56de\u5934\u770b\u770b\u591a\u5e74\u524d\u62d9\u4f5c\u3002\u5185\u5bb9\u5012\u6ca1\u4ec0\u4e48\uff0c\u91cd\u8981\u662f\u5e0c\u671b\u5927\u5bb6\u80fd\u4ee5\u53e6\u5916\u7684\u773c\u5149\u770b\u5f85\u6211\u4eec\u5728\u8ba1\u7b97\u673a\u4e0a\u4e4b\u6240\u89c1\u3002\u672c\u5bab\u5c0f\u65f6\u5019\u542c\u8fc7\u8fd9\u4e48\u4e00\u9996\u5c0f\u66f2\uff1a\u201c\u501f\u6211\u501f\u6211\u4e00\u53cc\u6167\u773c\u5427\uff0c\u8ba9\u6211\u628a\u8fd9\u4e16\u754c\u770b\u5f85\u51c4\u51c4\u60e8\u60e8\u621a\u621a\u3001\u660e\u660e\u767d\u767d\u3001\u771f\u771f\u5207\u5207\u2026\u2026\u201d<\/p>\n<p>\u4ee5\u50cf\u7d20\u7684\u601d\u7ef4\u610f\u8bc6\u770b\u5f85\u9875\u9762\uff0c\u4f1a\u5c06\u56fe\u5f62\u4e4b\u672c\u8d28\u4e00\u773c\u770b\u7a7f\uff0c\u89e3\u51b3\u76f8\u5173\u95ee\u9898\u5fc5\u5b9a\u624b\u5230\u64d2\u6765\u3002<\/p>\n<p>\u597d\u6bd4\u8bf4\u4e0b\u56fe\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"css\u7ed8\u5236\u7684\u5c0f\u6c7d\u8f66\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200912\/2009-12-06_235621.png\" title=\"css\u7ed8\u5236\u7684\u5c0f\u6c7d\u8f66\" class=\"alignnone\" width=\"209\" height=\"93\"><\/p>\n<p>\u4e43\u672c\u5bab\u501f\u52a9CSS\u624b\u8c15\u4ee5\u53ca20\u4e2a\u9526\u8863\u536b\uff08\u6807\u7b7e\uff09\u5199\u6210\u7684\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.zhangxinxu.com\/study\/200912\/css-draw-a-car.html\">css\u7ed8\u5236\u7684\u5c0f\u6c7d\u8f66demo\u6548\u679c\u9875\u9762<\/a><\/p>\n<p>\u867d\u8bf4\u5b9e\u73b0\u7684\u6548\u679c\u7687\u4e0a\u5012\u662f\u6b22\u559c\uff0c\u7136\u52a8\u752820\u540d\u9526\u8863\u536b\uff0c\u8fc7\u4e8e\u52b3\u5e08\u52a8\u4f17\u4e86\u3002\u81ea\u53e4\u4ee5\u6765\uff0c\u9526\u8863\u536b\u662f\u4fdd\u62a4\u7687\u4e0a\uff0c\u4fdd\u62a4\u6211\u4eec\u8fd9\u4e9b\u81e3\u59be\u7684\u3002\u6545\u8c03\u52a8\u4e00\u5927\u6ce2\u9526\u8863\u536b\u5fd9\u6211\u4eec\u7ee3\u82b1\u6795\u5934\uff0c\u662f\u4e0d\u73b0\u5b9e\u7684\uff0c\u4e45\u4e4b\uff0c\u7687\u4e0a\u5fc5\u5b9a\u4e0d\u6b22\u559c\uff0c\u5c82\u4e0d\u81ea\u8ba8\u82e6\u5403\u3002<\/p>\n<p>\u7136\u4e16\u4e8b\u5883\u8fc1\uff0c<code>box-shadow<\/code>\u7684\u91cd\u53e0\u6027\u8ba9\u4e4b\u524d\u7684\u4e3a\u96be\u4e4b\u5904\u70df\u6d88\u4e91\u6563\u4e86\u3002<\/p>\n<p>\u4e0d\u6025\uff0c\u5f85\u672c\u5bab\u5a13\u5a13\u9053\u6765\u3002<\/p>\n<p>\u4e0d\u77e5\u4f17\u59d0\u59b9\u6709\u6ca1\u6709\u601d\u91cf\u8fc7<code>box-shadow<\/code>\u6548\u679c\u7684\u672c\u8d28\u3002\u5728\u8fd9\u73b0\u5b9e\u4e16\u754c\uff0c\u70db\u706b\u7167\u7269\uff0c\u82e5\u975e\u9b3c\u9b42\u4e4b\u7c7b\uff0c\u5b9a\u5f53\u6709\u6295\u5f71\u3002\u73b0\u5b9e\u7ecf\u9a8c\u4f1a\u56fa\u5316\u6211\u7b49\u601d\u7ef4\u65b9\u5f0f\uff0c\u82e5\u95ee\u8bf8\u4f4d\u201c<code>box-shadow<\/code>\u6548\u679c\u4e4b\u672c\u8d28\u201d\uff0c\u7b2c\u4e00\u76f4\u89c9\u60f3\u5fc5\u662f\u4ece\u73b0\u5b9e\u7ecf\u9a8c\u5bfb\u627e\u7b54\u6848\uff08\u7b2c\u4e00\u7cfb\u7edf\u65e0\u610f\u8bc6\u4e4b\u884c\u4e3a\uff09\uff0c\u6545\u800c\u6216\u8bb8\u4f1a\u4ee5\u201c\u6295\u5f71\u201d\u4e4b\u610f\uff0c\u201c\u5149\u7ebf\u201d\u4e4b\u5f62\u89e3\u91ca\u4e4b\u3002\u5176\u5e94\u7528\u573a\u666f\u4e5f\u4f1a\u88ab\u5c40\u9650\u5728\u201c\u6295\u5f71\u201d\u8303\u56f4\u4e4b\u5185\uff08\u601d\u7ef4\u8fde\u8d2f\u6027\u9650\u5236\uff09\u3002<\/p>\n<p>\u4f46\uff0c\u5728\u672c\u5bab\u770b\u6765\uff0c<code>box-shadow<\/code>\u6548\u679c\u7684\u672c\u8d28\u5b9e\u9645\u4e0a\u662f\u5bf9<strong>\u81ea\u8eab\u7684\u590d\u5236<\/strong>\uff0cover!<\/p>\n<p>\u6211\u7b49\u518d\u56de\u9996\u770b\u770b\u5439\u67ef\u683c\u683c\u7684\u6309\u94ae\u5c0f\u4f5c\uff0c\u7ec6\u60f3\u4e4b\uff0c\u662f\u4e0d\u662f\u5b9e\u9645\u5c31\u662f\u81ea\u8eab\u7684N\u591a\u590d\u5236\uff0c\u7136\u540e\u5c42\u53e0\u5f62\u6210\u4e4b\uff1f<\/p>\n<p>\u8ba1\u7b97\u673a\u4efb\u610f\u56fe\u5f62\u4e4b\u6240\u89c1\u5747\u7531\u50cf\u7d20\u70b9\u6784\u6210\u3002\u56e0\u6b64\uff0c\u7406\u8bba\u4e0a\uff0c\u53ea\u8981\u4e00\u4e2a\u9526\u8863\u536b\uff0c\u6211\u4eec\u5c06\u5176\u6253\u9020\u6210<code>1px * 1px<\/code>\u7684\u57fa\u672c\u50cf\u7d20\u9897\u7c92\uff0c\u501f\u52a9<code>box-shadow<\/code>\u590d\u5236\u81ea\u8eab\uff0c\u5b9a\u4f4d\uff1b\u518d\u590d\u5236\uff0c\u518d\u5b9a\u4f4d\uff1b\u2026\u2026\u3002\u5c31\u53ef\u4ee5\u751f\u6210\u4efb\u610f\u989c\u8272\u3001\u4efb\u610f\u5f62\u72b6\u7684\u56fe\u5f62\uff01<\/p>\n<p>\u76f8\u6bd4\u4e4b\u524d\u768420\u540d\u9526\u8863\u536b\uff0c\u8fd9\u91cc\uff0c\u53ea\u89811\u540d\u5c31\u53ef\u4ee5\u5b8c\u6210\u4e4b\u3002\u6b64\u751f\u6210\u6280\u672f\u7684\u53ef\u884c\u6027\u4f3c\u4e4e\u66f4\u751a\u4e00\u7b79\u3002<\/p>\n<h3>\u4e09\u3001\u96d5\u680f\u7389\u780c\u5e94\u72b9\u5728\uff0c\u53ea\u662f\u56fe\u7247\u6539<\/h3>\n<p>\u4e00\u56fe\u80dc\u5343\u8a00\uff0c\u4e00\u4f8b\u80dc\u5343\u56fe\u3002<\/p>\n<p>\u672c\u5bab\u8fd9\u91cc\u62ff\u65e0\u540d\u5c0f\u4e3b\u7684\u9753\u7167\u793a\u4f8b\uff0c<code>box-shadow<\/code>\u5982\u4f55\u6784\u5efa\u4efb\u610f\u7684\u56fe\u5f62\u3002<\/p>\n<p>\u8bf8\u4f4d\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a class=\"a_link\" href=\"http:\/\/www.zhangxinxu.com\/study\/201311\/box-shadow-convert-to-image.html\" target=\"_blank\">\u76d2\u9634\u5f71\u6784\u5efa\u65e0\u540d\u5c0f\u4e3b\u9753\u7167demo<\/a><\/p>\n<p>\u8fdb\u5165demo\u9875\u9762\uff0c\u8bf8\u59d0\u59b9\u5e94\u89c1\u5230\u4e86\u4e24\u5f20\u65e0\u540d\u5c0f\u4e3b\u7684\u771f\u5bb9\u7167\u7247\u3002\u770b\u4f3c\u5f62\u795e\u4e00\u81f4\uff0c\u4f46\u8fd9\u5e95\u5b50\u554a\uff0c\u5374\u662f\u5343\u5dee\u4e07\u522b\u7684\u3002<\/p>\n<p>\u6765\uff0c\u6276\u6211\u4e0b\u6765\uff0c\u6380\u5f00\u753b\u5e03\u7ed9\u59d0\u59b9\u4eec\u7785\u7785\uff01<\/p>\n<p>\u4e0a\u9762\u8fd9\u5f20\u5c0f\u4e3b\u7167\u7247\uff0c\u90a3\u786e\u5b9e\u662f\u5e73\u65e5\u6211\u7b49\u6240\u89c1\u3002\u558f~~<code>img<\/code>\u9526\u8863\u536b~<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201801\/2018-01-02_033451.jpg\" width=\"279\" height=\"240\" alt=\"img\u6807\u7b7e\u8868\u660e\u8fd9\u662f\u539f\u59cb\u4f20\u7edf\u663e\u793a\u7684\u56fe\u7247\" class=\"alignnone\" \/><\/p>\n<p>\u4e0b\u9762\u8fd9\u5f20\u5c0f\u4e3b\u7167\u7247\uff0c\u90a3\u5176\u5b9e\u662f\u201c\u767d\u9aa8\u7cbe\u201d\u7684\u53d8\u5316\u3002\u5b9e\u5219\u4e00\u4e2a\u666e\u901a<code>div<\/code>\u9526\u8863\u536b + <code>box-shadow<\/code>\u53d8\u5316\u800c\u6765\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201801\/2018-01-02_033617.png\" width=\"507\" height=\"330\" alt=\"box-shadow\u751f\u6210\u7684\u65e0\u540d\u5c0f\u4e3b\u7684\u7167\u7247\" class=\"alignnone\" \/><\/p>\n<p>\u54df\uff1f\u96be\u5f97\u534e\u5983\u5bf9\u600e\u4e2a\u5b9e\u73b0\u611f\u5174\u8da3\uff0c\u672c\u5bab\u5c31\u591a\u5520\u53e8\u51e0\u53e5\u3002<\/p>\n<p>\u4ee5\u524d\u672c\u5bab\u5c31\u6570\u6b21\u987a\u53e3\u63d0\u8fc7\uff0c<code>canvas<\/code>\u4e0a\u4e0b\u6587\u6709\u4e2a<code>getImageData<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u83b7\u53d6\u753b\u5e03\u6bcf\u4e00\u4e2a\u50cf\u7d20\u70b9\u7684\u989c\u8272\u4fe1\u606f\u3001\u900f\u660e\u5ea6\u4fe1\u606f\u3002\u4e8e\u662f\uff0c\u672c\u5bab\u5c31\u5229\u7528<code>drawImage<\/code>\u5c06\u65e0\u540d\u5c0f\u4e3b\u9753\u7167\u539f\u5c01\u4e0d\u52a8\u8fc1\u5230\u753b\u5e03\u4e0a\uff0c\u518d\u5229\u7528<code>getImageData<\/code>\u83b7\u5f97\u7684\u50cf\u7d20\u70b9\u4fe1\u606f\uff0c\u8f6c\u6362\u6210<code>box-shadow<\/code>\u503c\uff0c\u7136\u540e\u5448\u73b0\u4e4b\u3002<\/p>\n<p>\u7406\u8bba\u4e0a\uff0c\u4efb\u610f\u7684\u56fe\u7247\uff0c<code>box-shadow<\/code>\u90fd\u53ef\u4ee5\u5448\u73b0\u3002<\/p>\n<p>\u672c\u5bab\u767e\u5fd9\u62bd\u7a7a\u6363\u817e\u4e86\u4e00\u4e2a\u5c0f\u5de5\u5177\uff0c\u53ef\u4ee5\u628a\u4efb\u610f\u672c\u5730\u56fe\u7247\u8f6c\u6362\u6210<code>box-shadow<\/code>\u7684CSS\u4ee3\u7801\u8868\u793a\u3002<\/p>\n<p>\u59d0\u59b9\u4eec\u8981\u662f\u6709\u5174\u8da3\uff0c\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a class=\"a_link\" href=\"http:\/\/www.zhangxinxu.com\/GitHub\/boxShadow\/box-shadow.html\" target=\"_blank\">\u56fe\u7247box-shadow\u8868\u793a\u5de5\u5177\u9875\u9762<\/a><\/p>\n<p>\u540c\u65f6\uff0c\u672c\u5bab\u5df2<a href=\"https:\/\/github.com\/zhangxinxu\/boxShadow\" target=\"_blank\">\u5f00\u6e90\u6b64\u5de5\u5177\u5728Github\u4e0a<\/a>\uff0c\u59d0\u59b9\u4eec\u8981\u662f\u6709\u5174\u8da3\uff0c\u53ef\u7b49\u5ea7\u8c08\u4f1a\u7ed3\u675f\u540e\uff0c\u81ea\u5df1\u5728\u5bdd\u5bab\u8bd5\u9a8c\u8bd5\u9a8c\uff0c\u7422\u78e8\u7422\u78e8\uff0c\u4e5f\u7b97\u5bf9\u5f97\u8d77\u672c\u5bab\u7684\u8f9b\u52b3\u3002<\/p>\n<p>\u6b64\u5de5\u5177\u81ea\u52a8\u5ffd\u7565\u900f\u660e\u50cf\u7d20\uff0c\u9ed8\u8ba416\u8fdb\u5236\u8868\u793a\uff0c\u82e5\u534a\u900f\u660e\u50cf\u7d20\uff0c\u5219<code>rgba<\/code>\u8868\u793a\u3002\u56e0\u6b64\uff0c\u82e5\u4f20\u4e00\u900f\u660e\u80cc\u666f\u56fe\u6807\u5c0f\u56fe\uff0c\u4ee3\u7801\u5012\u4e5f\u662f\u6781\u7b80\u5355\u7684\uff0c\u5982\u65af\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201311\/2013-11-27_191326.png\" width=\"22\" height=\"26\" alt=\"\u5341\u5b57\u5f62\u56fe\u6807\" class=\"alignnone\" \/><\/p>\n<div class=\"zxx_code\">\n<pre>box-shadow: 11px 8px #626262,11px 9px #626262,11px 10px #626262,11px 11px #626262,11px 12px #626262,11px 13px #626262,11px 14px #626262,4px 15px #626262,5px 15px #626262,6px 15px #626262,7px 15px #626262,8px 15px #626262,9px 15px #626262,10px 15px #626262,11px 15px #626262,12px 15px #626262,13px 15px #626262,14px 15px #626262,15px 15px #626262,16px 15px #626262,17px 15px #626262,18px 15px #626262,11px 16px #626262,11px 17px #626262,11px 18px #626262,11px 19px #626262,11px 20px #626262,11px 21px #626262,11px 22px #626262;<\/pre>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201311\/2013-11-29_181713.png\" width=\"579\" height=\"157\" alt=\"demo\u9875\u9762\u7684\u622a\u56fe\" class=\"alignnone\" \/><\/p>\n<p>\u8bf8\u4f4d\u59d0\u59b9\u662f\u4e0d\u662f\u6709\u6240\u542f\u793a\uff1f<\/p>\n<p>\u672c\u5bab\u5e26\u5927\u5bb6\u518d\u56de\u987e\u4e0b\u56fe\u5f62\u6280\u672f\uff1a<\/p>\n<ol>\n<li><strong>\u4f20\u7edf\u56fe\u7247<\/strong><br \/>\n\u4f18\u70b9\uff1a\u517c\u5bb9\u6027\u3002\u7f3a\u70b9\uff1a\u989d\u5916\u7684\u8bf7\u6c42\uff1b\u89c6\u7f51\u819c\u5206\u8fa8\u7387\u6548\u679c\u7cdf\u7cd5\uff1b\u4fee\u6539\u7ef4\u62a4\u6210\u672c\u9ad8\u3002<\/li>\n<li><strong>font-face<\/strong><br \/>\n\u4f18\u70b9\uff1a\u989c\u8272\u5927\u5c0f\u63a7\u5236\u7075\u6d3b\uff1b\u89c6\u7f51\u819c\u5c4f\u5e55\u65e0\u969c\u788d\u3002\u4e0d\u8db3\uff1a\u4e0d\u652f\u6301\u6e10\u53d8\u3001\u591a\u8272\u56fe\u5f62\uff1b\u5f88\u591a\u8bbe\u5907\u7cfb\u7edf\u6bdb\u8fb9\u4e25\u91cd\uff1b\u6709\u8bf7\u6c42\uff1b\u6643\u52a8\u95ee\u9898\u3002<\/li>\n<li><strong>SVG\u80cc\u666f<\/strong><br \/>\n\u4f18\u70b9\uff1a\u89c6\u7f51\u819c\u8bbe\u5907\u652f\u6301\uff0c\u652f\u6301\u591a\u8272\u3002\u4e0d\u8db3\uff1a\u8bf7\u6c42\u8fc7\u591a\uff0c\u517c\u5bb9\u6027\u3002<\/li>\n<li><strong>box-shadow\u751f\u6210<\/strong><br \/>\n\u4f18\u70b9\uff1a<span style=\"color:#cd0000;\">\u65e0\u8bf7\u6c42<\/span>\uff0c\u89c6\u7f51\u819c\u5c4f\u65e0\u969c\u788d\uff0c\u652f\u630132\u4f4d\u591a\u5f69\u8272\u3002\u4e0d\u8db3\uff1a\u517c\u5bb9\u6027\u3002<\/li>\n<\/ol>\n<p>\u7efc\u5408\u6765\u770b\uff0c\u82e5\u4e0d\u5728\u610f\u517c\u5bb9\u6027\uff0c\u6216\u8005\u91c7\u7528\u6e10\u8fdb\u589e\u5f3a\u4e4b\u8c0b\u7565\uff0c<code>box-shadow<\/code>\u751f\u6210\u4e4b\u6cd5\u4e5f\u662f\u6781\u597d\u7684\u3002<\/p>\n<p>\u6ca1\u9519\uff0c\u50cf\u7d20\u7ea7\u7684<code>box-shadow<\/code>\u7a77\u4e3e\u4f1a\u8ba9CSS\u6587\u4ef6\u7684\u5927\u5c0f\u5f92\u589e\u4e0d\u5c11\u3002\u56e0\u6b64\uff0c<code>1<\/code>\u50cf\u7d20\u66b4\u529b\u7834\u89e3\u4e4b\u6cd5\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u8fd8\u662f\u6709\u5f85\u659f\u914c\u7684\u3002<\/p>\n<p>\u8fd9\u53ef\u7740\u5b9e\u6101\u7740\u4e86\u672c\u5bab\u4e86~~<\/p>\n<h3>\u56db\u3001\u95ee\u5bab\u80fd\u6709\u51e0\u591a\u6101\uff0c\u6070\u4f3cbug\u4e0d\u65ad\u5411\u4e1c\u6d41<\/h3>\n<p>\u4eba\u751f\u4e0d\u5982\u610f\u4e8b\u516b\u4e5d\uff0c\u8bf8\u4f4d\u59d0\u59b9\u4e5f\u522b\u53f9\u6c14\uff0c\u867d\u8bf4\u6708\u513f\u6101\u4e0a\u67f3\u68a2\u5934\uff0c\u672c\u5bab\u5176\u5b9e\u53cd\u5012\u81ea\u5728\u3002<\/p>\n<p>\u6240\u8c13\u5929\u751f\u6211\u624d\u5fc5\u6709\u7528\uff0c\u4ee3\u7801\u603b\u4f1a\u590d\u7528\u6765\u3002<\/p>\n<p>\u5e74\u521d\uff0c\u7687\u4e0a\u8bf7\u7389\u4f5b\u5bfa\u7684\u548c\u5c1a\u6765\u5ff5\u7ecf\uff0c\u5927\u5e08\u8fd9\u6390\u6307\u4e00\u7b97\uff0c\u6599\u5b9a\u672a\u6765\u51e0\u5e74\u76db\u884c\u6241\u5e73\u4e4b\u98ce\u3002<\/p>\n<p>\u59d0\u59b9\u4eec\u6de1\u5b9a\uff0c\u6b64\u201c\u6241\u5e73\u201d\u975e\u5f7c\u201c\u6241\u5e73\u201d\u3002\u90a3\u8bf4\u7684\u662f\u7ee3\u82b1\u7684\u98ce\u683c\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u90a3\u56fe\u6807\u88c5\u9970\u5b9a\u662f\u4f1a\u6108\u53d1\u7684\u7b80\u6d01\uff0c\u7eaf\u8272+\u7b80\u5355\u51e0\u4f55\u56fe\u5f62\u3002<\/p>\n<p>\u8b6c\u5982\u6700\u8fd1\u6d0b\u4eba\u634e\u6765\u7684\u4e2a\u53eb\u2026\u2026\u53eb\u2026\u2026\uff0c\u6ca1\u9519\uff0c\u53eb<code>skydrive<\/code>\u7684\u56fe\u4f8b\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201311\/2013-11-29_185321.png\" width=\"192\" height=\"143\" alt=\"skydrive\u4e00\u4e9b\u5c0f\u56fe\u6807\u622a\u56fe \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" class=\"alignnone\" \/><\/p>\n<p>\u770b\u770b\u770b\uff0c\u662f\u4e0d\u662f\u989c\u8272\u5f88\u5355\u7eaf\uff0c\u7ed3\u6784\u5f88\u7b80\u5355\u54c8~<\/p>\n<p>\u7687\u4e0a\u4e0a\u6b21\u5f00\u540e\u5bab\u5927\u4f1a\u5c31\u8bf4\u8fc7\uff1a\u201c\u8fd9\u770b\u4e1c\u897f\u554a\uff0c\u4e0d\u80fd\u53ea\u76ef\u5728\u4e00\u4e2a\u5730\u65b9\uff0c\u8981\u591a\u987e\u5de6\u53f3\u601d\u5176\u4ed6\u201d\u3002<\/p>\n<p>\u4e0a\u9762\u8fd9\u4e9b\u56fe\u6807\uff0c\u867d\u7136\u5355\u7eaf\u6307\u671b<code>box-shadow<\/code>\uff08\u867d\u6548\u679c\u5b9e\u73b0\u4e0d\u6210\u95ee\u9898\uff09\u4f1a\u8ba9CSS\u8868\u793a\u538b\u529b\u5f88\u5927\u3002\u4f46\u662f\u90a3\u4e9b\u8272\u5757\u554a\uff0c\u7ebf\u6761\u554a\u4ec0\u4e48\u7684\uff0c<code>background-color<\/code>\u554a\uff0c<code>border<\/code>\u554a\u90a3\u662f\u559c\u6b22\u7684\u5f88\u554a~ \u90a3\u4e9bCSS\u65e0\u6cd5\u9a7e\u9a6d\u7684\u5f27\u5f62\uff0c\u5c31\u8ba9\u4e07\u80fd\u7684<code>box-shadow<\/code>\u51fa\u9a6c\uff0c\u5c82\u4e0d\u914d\u5408\u5f88\u597d\u3001\u76f8\u5f97\u76ca\u5f70\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u672c\u5bab\u867d\u8bf4\u6709\u6101\uff0c\u4f46\u4e5f\u5012\u6709\u51e0\u5206\u81ea\u5728\u3002<\/p>\n<p><code>::before<\/code>, <code>::after<\/code>\u4f2a\u5143\u7d20\u4e43\u56fe\u5f62\u751f\u6210\u4e4b\u5229\u5668\u554a\uff0cIE9+\u652f\u6301\uff0c\u800c<code>box-shadow<\/code>\u4e5f\u662fIE9+\u652f\u6301\u3002\u6545\uff0c\u5927\u5bb6\u53ef\u4ee5\u770b\u5230\uff0c\u5728IE9+\u6d4f\u89c8\u5668\u4e2d\uff0c\u6241\u5e73\u5316\u7684\u5c0f\u56fe\u6807\u6ca1\u6709\u4efb\u4f55\u4f7f\u7528\u56fe\u7247\u5b9e\u73b0\u7684\u7406\u7531\uff01<\/p>\n<p><code>background-clip<\/code> + <code>background-color<\/code>+<code>border<\/code>+<code>(-ms-)transform<\/code>+\u4e07\u80fd\u7684<code>box-shadow<\/code>\u662f\u6ca1\u6709\u4efb\u4f55\u5c0f\u56fe\u6807\u4e0d\u80fd\u5b9e\u73b0\u7684\u3002\u81f3\u4e8eIE6~IE8\uff0c\u672c\u5bab\u5efa\u8bae\u4f9d\u65e7\u4f7f\u7528sprite\u56fe\u7247\uff0c\u65e0\u7f1d\u627f\u63a5\u7684\u3002\u90fd\u662f\u4f7f\u7528\u540c\u4e00\u4e2a\u9526\u8863\u536b\u6807\u7b7e\uff0c\u4ee3\u7801\u51e0\u4e4e\u5929\u7136hack\u3002\u4fdd\u8bc1\u7687\u4e0a\u6bcf\u6b21\u8fc7\u6765\u90fd\u4e0d\u4f1a\u5931\u610f\u800c\u56de\u7684\u3002<\/p>\n<p>\u662f\u65f6\u5019\u634b\u4e00\u645e\u4ee3\u7801\uff0c\u968f\u6c34\u4e1c\u6d41\uff0c\u5e26\u8d70\u672c\u5bab\u7684\u54c0\u6101\u3002<\/p>\n<p>\u69ff\u6c50\uff0c\u7ed9\u672c\u5bab<strong>\u62ff\u4e00\u4e2a\u677f\u6817<\/strong>\uff0c\u8981\u62ff\u90a3\u4e2a\u5e94\u7528<code>box-shadow<\/code>\u6700\u5177\u4ee3\u8868\u6027\u7684\u677f\u6817\uff08\u5982\u4e0b\u7bad\u5934\u793a\u610f\uff09\uff0c\u6211\u8981\u4e3e\u4e00\u4e0b\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201311\/2013-11-29_191942.png\" width=\"255\" height=\"208\" alt=\"\u6211\u4eec\u8981\u5b9e\u73b0\u7684\u5c0f\u56fe\u6807 \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" class=\"alignnone\" \/><\/p>\n<p>\u6211\u7b49\u5c06\u5176\u653e\u5927N\u500d\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201311\/2013-11-29_192351.png\" width=\"465\" height=\"400\" alt=\"\u5c0f\u56fe\u6807\u653e\u5927\u540e\" class=\"alignnone\" \/><\/p>\n<p>\u8fd8\u8bb0\u5f97\u672c\u5bab\u4e4b\u524d\u5f3a\u8c03\u8fc7\u7684\u8bdd\u5417\uff1f<\/p>\n<p><strong>\u76d2\u9634\u5f71\u7684\u672c\u8d28\u662f\u590d\u5236<\/strong>\u3002\u59d0\u59b9\u4eec\u770b\u770b\u4e0a\u9762\u8fd9\u5f20\u653e\u592732\u500d\u540e\u7684\u56fe\u54ea\u91cc\u590d\u5236\u4e86\uff1f\u2026\u2026<\/p>\n<p>\u6ca1\u9519\uff0c\u5c31\u662f\u4e0b\u9762\u52a0\u6df1\u6807\u793a\u7684<code>1px * 4px<\/code>\u533a\u57df\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201311\/2013-11-29_192352.png\" width=\"465\" height=\"400\" alt=\"\u5c0f\u56fe\u6807\u653e\u5927\u540e\" class=\"alignnone\" \/><\/p>\n<p>\u5b9e\u9645\u4e0a\uff0c\u8fd9\u4e2a\u56fe\u7247\uff0c\u5c31\u662f\u52a0\u6df1\u533a\u57df\u590d\u5236\u540e\u7684\u4ea7\u7269\uff0c\u4e5f\u5c31\u662f\u5178\u578b\u7684<code>box-shadow<\/code>\u7684\u4ea7\u7269\uff0c\u4e8e\u662f\uff0c\u6211\u4eec\u5c31\u6709\uff1a<\/p>\n<style>.icon-up{display:inline-block; width:20px; height:20px; background:url(http:\/\/image.zhangxinxu.com\/image\/blog\/201311\/icon.gif) no-repeat center;}\n:root .icon-up{background-image:none;}\n.icon-up::before{content: ''; position: absolute; height: 4px; width: 1px; background-color:#bdbdbd; box-shadow: 1px 1px #bdbdbd, 2px 2px #bdbdbd, 3px 3px #bdbdbd, 4px 4px #bdbdbd, 5px 5px #bdbdbd, -1px 1px #bdbdbd, -2px 2px #bdbdbd, -3px 3px #bdbdbd, -4px 4px #bdbdbd, -5px 5px #bdbdbd; margin: 5px 0 0 9px; }<\/style>\n<p>\u4e0b\u56fe\u6807\u4e0d\u662f\u622a\u56fe\uff0c\u800c\u662f\u5b9e\u65f6CSS\u5b9e\u73b0\uff1a<br \/>\n<i class=\"icon-up\"><\/i><\/p>\n<p>CSS\u4ee3\u7801\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>.icon-up{display:inline-block; width:20px; height:20px; background:url(icon.gif) no-repeat center;}\n:root .icon-up{background-image:none;}\n.icon-up::before{\n    content: ''; position: absolute; margin: 5px 0 0 9px; \n    height: 4px; border-left: 1px solid #bdbdbd; \n    box-shadow: 1px 1px #bdbdbd, 2px 2px #bdbdbd, 3px 3px #bdbdbd, 4px 4px #bdbdbd, 5px 5px #bdbdbd, \n               -1px 1px #bdbdbd, -2px 2px #bdbdbd, -3px 3px #bdbdbd, -4px 4px #bdbdbd, -5px 5px #bdbdbd;     \n}<\/pre>\n<\/div>\n<p>HTML\u4ee3\u7801\u4e3a\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>&lt;i class=\"icon-up\">&lt;\/i><\/pre>\n<\/div>\n<p>\u6211\u4eec<strong>\u7b80\u5355\u5bf9\u6bd4\u4e0b<\/strong>\uff1a<br \/>\n\u6b64<code>gif<\/code>\u683c\u5f0f\u56fe\u7247<code>59<\/code>\u5b57\u8282\uff0c\u5b9e\u9645\u4e0a\uff0c\u59d0\u59b9\u4eec\u66f4\u591a\u7684\u662f\u4e60\u60ef\u6027\u4fdd\u5b58\u4e3a<code>png<\/code>\u683c\u5f0f(<code>172<\/code>\u5b57\u8282). <\/p>\n<p><code>box-shadow<\/code>\u76f8\u5173CSS\u4ee3\u7801\uff08\u542b\u7a7a\u683c\uff0c\u672b\u5c3e\u5206\u53f7\uff09<code>186<\/code>\u5b57\u8282\uff0cGzip\u540e\uff0c\u5927\u7ea660~70\u5b57\u8282\u3002\u53ef\u89c1\uff0c\u6d41\u91cf\u4f20\u8f93\u51e0\u4e4e\u4e0d\u5206\u4f2f\u4ef2\u3002\u4f46\uff0c<code>box-shadow<\/code>\u5b9e\u73b0\u6ca1\u6709http\u8bf7\u6c42\uff0c\u989c\u8272\u3001\u900f\u660e\u5ea6\u7b49\u63a7\u5236\u65b9\u4fbf\uff0c\u4e14\u89c6\u7f51\u819c\u5c4f\u5e55\u65e0\u969c\u788d\u3002\u7efc\u5408\u5bf9\u6bd4\uff0c<code>box-shadow<\/code>\u56fe\u5f62\u751f\u6210\u4e0a\u4e86\u597d\u51e0\u4e2a\u53f0\u9636\u3002<\/p>\n<p>\u7531\u6b64\u53ef\u89c1\uff0c\u8fd9<code>box-shadow<\/code>\u5728\u672a\u6765\u8fd8\u662f\u76f8\u5f53\u6709\u770b\u5934\u7684\uff0c\u4ee5\u540e\uff0c\u54b1\u4eec\u505a\u523a\u7ee3\u8bf4\u4e0d\u5b9a\u5c31\u8981\u4f9d\u8d56\u5b83\u54af\uff01\u5475\u5475\u5475\u5475\u2026\u2026 <span class=\"s\">\u65c1\u767d\uff1a\u4f17\u5983\u5b50\u90fd\u8ddf\u7740\u7b11\u5f97\u4e0d\u4ea6\u4e50\u4e4e\u2026\u2026<\/span><\/p>\n<p>\u672c\u5bab\u4eca\u65e5\u7684\u4e00\u70b9\u5c0f\u5c0f\u5206\u4eab\uff0c\u5012\u4e0d\u662f\u5355\u7eaf\u5e0c\u671b\u5728\u5ea7\u7684\u59d0\u59d0\u4eec\u65b0\u6280\u80fdget\u221a\uff0c\u66f4\u591a\u7684\u662f\u5e0c\u671b\u80fd\u5f62\u6210\u4e00\u70b9\u542f\u793a\uff0c\u5982\u6446\u8131\u73b0\u5b9e\u4e16\u754c\u675f\u7f1a\u7684\u601d\u7ef4\u65b9\u5f0f\uff0c\u591a\u65b9\u4f4d\u770b\u5f85\u95ee\u9898\u7684\u610f\u8bc6\u7b49\u3002\u5e0c\u671b\u7531\u6b64\u4ea7\u751f\u7684\u5229\u597d\u53ef\u4ee5\u5e2e\u52a9\u59d0\u59d0\u4eec\u65e5\u540e\u5728\u670d\u4f8d\u7687\u4e0a\u7684\u65f6\u5019\u80fd\u6709\u51fa\u5f69\u7684\u5730\u65b9\u3002\u8fd9\u624d\u662f\u5bf9\u672c\u5bab\u6700\u5927\u7684\u6170\u85c9\u3002<\/p>\n<p><span class=\"s\">\u65c1\u767d\uff1a\u53c8\u8fc7\u4e86\u4e00\u4e2a\u65f6\u8fb0\u2026\u2026<\/span><\/p>\n<p>\u542c\u58f0\u97f3\uff0c\u8fd9\u5916\u5934\u7684\u98ce\u4f3c\u4e4e\u5c0f\u4e86\u5f88\u591a\u3002\u8fd9\u773c\u7785\u8fd9\u5feb\u4e09\u66f4\u4e86\uff0c\u770b\u6765\uff0c\u672c\u6708\u7684\u540e\u5bab\u8336\u8bdd\u4f1a\u662f\u8981\u7ed3\u675f\u4e86\u3002<\/p>\n<p>\u8981\u662f\u54ea\u4f4d\u59d0\u59b9\u5bf9\u672c\u5bab\u4eca\u65e5\u4e4b\u5520\u5520\u62b1\u6709\u7591\u8651\uff0c\u53ef\u79c1\u4e0b\u627e\u6211\uff0c\u54b1\u4eec\u4e00\u8fb9\u5403\u7740\u70b9\u5fc3\u679c\u5b50\uff0c\u4e00\u8fb9\u4ea4\u6d41\u7545\u8c08\u3002\u4e0d\u5fc5\u62d8\u8c28\u3002<\/p>\n<p>\u6d63\u78a7\uff0c\u4f60\u53bb\u628a\u4e0b\u4eba\u90fd\u53eb\u8fdb\u6765\uff0c\u9001\u8bf8\u4f4d\u59d0\u59d0\u59b9\u59b9\u4eec\u56de\u5bab\u53bb\u5427~~<\/p>\n<p>\u672c\u5bab\u4e5f\u8981\u8131\u8863\u5c31\u5bdd\u4e86\u2026\u2026<\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u6765\u81ea<a href=\"http:\/\/www.zhangxinxu.com\/\">\u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b<\/a>[<a href=\"http:\/\/www.zhangxinxu.com\/\">http:\/\/www.zhangxinxu.com<\/a>]<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=3813\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=3813<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7406\u8bba\u4e0a\uff0cCSS3 box-shadow\u76d2\u9634\u5f71\u53ef\u4ee5\u751f\u6210\u4efb\u610f\u7684\u56fe\u5f62\uff0c\u5c0f\u6708\u683c\u683c\u7684\u9753\u7167\uff0c\u542b\u97f5\u683c\u683c\u7684\u9753\u7167\u90a3\u90fd\u4e0d\u5728\u8bdd\u4e0b\u3002\u672c\u6587\u4e14\u542c\u540e\u5bab\u8336\u8bdd\u4f1a\u4e0a\u5173\u4e8eCSS3 box-shadow\u76d2\u9634\u5f71\u56fe\u5f62\u751f\u6210\u6280\u672f\u7684\u5206\u4eab\u3002\u622a\u56fe\u3001demo\u6e90\u4ee3\u7801\u793a\u610f\uff0c\u7f8e\u5973\u9753\u7167\u4e00\u4e2a\u90fd\u4e0d\u5c11\u3002\u8bf4\u4e0d\u5b9a\uff0c\u4f60\u4f1a\u6709\u522b\u6837\u7684\u6536\u83b7\u54e6\uff01\u3010\u6311\u7709\u3011<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[896,3],"tags":[360,53,177,655,888,496,642,823,889,362,744],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/3813"}],"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=3813"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/3813\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}