{"id":259,"date":"2023-08-10T20:49:00","date_gmt":"2023-08-10T12:49:00","guid":{"rendered":"https:\/\/solost.cn\/?p=259"},"modified":"2023-09-20T18:01:15","modified_gmt":"2023-09-20T10:01:15","slug":"388","status":"publish","type":"post","link":"https:\/\/solost.cn\/?p=259","title":{"rendered":"\u3010PHP\u3011Typecho\u535a\u5ba2\u5907\u6848\u7248\u6743\u9875\u811a\u7f8e\u5316"},"content":{"rendered":"<p><strong>\u7f51\u7ad9\u5907\u6848\u6210\u529f\u540e\u9700\u6ce8\u610f\u4ee5\u4e0b\u4e8b\u9879\uff1a<\/strong><\/p>\n<ol>\n<li>\u6309\u7167\u975e\u7ecf\u8425\u6027\u4e92\u8054\u7f51\u4fe1\u606f\u670d\u52a1\u5907\u6848\u7ba1\u7406\u529e\u6cd5\uff0c\u5728\u60a8\u7684\u7f51\u7ad9\u9996\u9875\u5e95\u90e8\u4e2d\u95f4\u4f4d\u7f6e\uff0c\u653e\u7f6e\u60a8\u7684\u5907\u6848\u53f7\u5e76\u94fe\u63a5\u81f3\u5de5\u4fe1\u90e8\u3002<\/li>\n<li>\u8bf7\u60a8\u52a1\u5fc5\u4fdd\u8bc1\u7f51\u7ad9\u5185\u5bb9\u4e0e\u5907\u6848\u4fe1\u606f\u4e00\u81f4\uff0c\u4e00\u65e6\u88ab\u67e5\u51fa\u4e0d\u4e00\u81f4\u60c5\u51b5\u5c06\u9762\u4e34\u88ab\u5173\u505c\u6574\u987f\u98ce\u9669\u3002<\/li>\n<li>\u6309\u7167\u300a\u4e2d\u534e\u4eba\u6c11\u5171\u548c\u56fd\u8ba1\u7b97\u673a\u4fe1\u606f\u7cfb\u7edf\u5b89\u5168\u4fdd\u62a4\u6761\u4f8b\u300b\u7b49\u76f8\u5173\u6cd5\u5f8b\u6cd5\u89c4\uff0c\u7f51\u7ad9\u5f00\u901a\u4e4b\u65e5\u8d7730\u65e5\u5185\u5230\u516c\u53f8\u5b9e\u9645\u7ecf\u8425\u5730\u6216\u4e2a\u4eba\u5e38\u4f4f\u5730\u516c\u5b89\u673a\u5173\u5c65\u884c\u516c\u5b89\u5907\u6848\u624b\u7eed\uff0c\u5177\u4f53\u8981\u6c42\u8bf7\u53c2\u89c1\u5173\u4e8e\u516c\u5b89\u5907\u6848\u901a\u77e5\u3002<\/li>\n<li>\u4f9d\u636e\u300a\u975e\u7ecf\u8425\u6027\u4e92\u8054\u7f51\u4fe1\u606f\u670d\u52a1\u5907\u6848\u7ba1\u7406\u529e\u6cd5\u300b\u7b2c\u4e8c\u5341\u4e09\u6761\u89c4\u5b9a\uff0c\u5982\u5907\u6848\u4fe1\u606f\u4e0d\u771f\u5b9e\uff0c\u5c06\u5173\u95ed\u7f51\u7ad9\u5e76\u6ce8\u9500\u5907\u6848\u3002<\/li>\n<li>\u82e5\u60a8\u7684\u5907\u6848\u4fe1\u606f\u53d1\u751f\u53d8\u66f4\uff0c\u8bf7\u60a8\u5c3d\u5feb\u7533\u8bf7\u53d8\u66f4\u5907\u6848\u3002<\/li>\n<\/ol>\n<p><strong>\u76ee\u524d\u6211\u7684\u8fd9\u4e2a\u7248\u6743\u6dfb\u52a0\u662f\u5728Handsame\u4e3b\u9898\u4e0a\u8fdb\u884c\u4fee\u6539\u7684\uff0c\u522b\u7684\u4e3b\u9898\u4e5f\u4e00\u6837\u54e6\\~<\/strong><\/p>\n<h2>CSS\u6837\u5f0f\u6dfb\u52a0\uff1a<\/h2>\n<p>\u6253\u5f00Typecho\u7f51\u7ad9\u540e\u53f0-\u300b\u5916\u89c2-\u300b\u8bbe\u7f6e\u5916\u89c2-\u300b\u5f00\u53d1\u8005\u8bbe\u7f6e-\u300b\u81ea\u5b9a\u4e49CSS\uff0c\u6dfb\u52a0\u4ee5\u4e0bCSS\u6837\u5f0f\u3002<br \/><img decoding=\"async\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/213wasabi\/img-bed\/img-bedcustomcss.jpg\" alt=\"\" title=\"\"><\/p>\n<pre><code>.github-badge {\n    display: inline-block;\n    border-radius: 4px;\n\n    text-shadow: none;\n    font-size: 12px;\n    color: #fff;\n    line-height: 15px;\n\n    background-color: #ABBAC3;\n\n    margin-bottom: 5px;\n}\n\n.github-badge .badge-subject {\n    display: inline-block;\n    background-color: #4D4D4D;\n    padding: 4px 4px 4px 6px;\n    border-top-left-radius: 4px;\n    border-bottom-left-radius: 4px;\n}\n\n.github-badge .badge-value {\n    display: inline-block;\n    padding: 4px 6px 4px 4px;\n    border-top-right-radius: 4px;\n    border-bottom-right-radius: 4px;\n}\n\n.github-badge .bg-brightgreen {\n    background-color: #4c1 !important;\n}\n.github-badge .bg-green {\n    background-color: #97CA00 !important;\n}\n.github-badge .bg-yellow {\n    background-color: #dfb317 !important;\n}\n.github-badge .bg-yellowgreen {\n    background-color: #a4a61d !important;\n}\n.github-badge .bg-orange {\n    background-color: #fe7d37 !important;\n}\n.github-badge .bg-red {\n    background-color: #e05d44 !important;\n}\n.github-badge .bg-blue {\n    background-color: #007ec6 !important;\n}\n.github-badge .bg-grey, .github-badge .bg-gray {\n    background-color: #555 !important;\n}\n.github-badge .bg-lightgrey, .github-badge .bg-lightgray {\n    background-color: #9f9f9f !important;\n}<\/code><\/pre>\n<p>\u5c06CSS\u6837\u5f0f\u6dfb\u52a0\u540e\uff0c\u8fd8\u9700\u8981\u6dfb\u52a0\u5c55\u793a\u7684\u5185\u5bb9\uff0c\u4ee5\u53ca\u5c06\u5c55\u793a\u7684\u5185\u5bb9\u548cCSS\u8fdb\u884c\u5173\u8054\u3002<\/p>\n<h2>\u9875\u9762\u6dfb\u52a0\uff1a<\/h2>\n<p>\u5728\u7f51\u7ad9\u76ee\u5f55\/usr\/theme\/\u4f60\u7684\u4e3b\u9898\/component\/footer.php\u8fdb\u884c\u4fee\u6539\u3002<br \/>\u8fd9\u4e2a\u5730\u65b9\u2193\u2193\u2193<br \/><img decoding=\"async\" src=\"https:\/\/wasabi-images.oss-cn-beijing.aliyuncs.com\/fun\/beioj\/beioj.png\" alt=\"\" title=\"\"><\/p>\n<p>\u66ff\u6362\u6210\u4ee5\u4e0b\u5185\u5bb9\u3002(\u91cc\u9762\u7684\u6587\u5b57\uff0c\u94fe\u63a5\u8bb0\u5f97\u6362\u6210\u4f60\u81ea\u5df1\u7684\u54e6)<\/p>\n<pre><code>&lt;a class=&quot;github-badge&quot;&gt;\n    &lt;span class=&quot;badge-subject&quot;&gt;Copyright&lt;\/span&gt;\n    &lt;span class=&quot;badge-value bg-brightgreen&quot;&gt;\u00a9 &lt;?php echo date(&quot;Y-M&quot;);?&gt;&lt;\/span&gt;\n&lt;\/a &gt;\n&lt;a class=&quot;github-badge&quot; target=&quot;_blank&quot; href=&quot; &quot;&gt;\n    &lt;span class=&quot;badge-subject&quot;&gt;Powered by&lt;\/span&gt;\n    &lt;span class=&quot;badge-value bg-orange&quot;&gt;Wasabi \u5c71\u8475\u9171&lt;\/span&gt;\n&lt;\/a &gt;\n&lt;a class=&quot;github-badge&quot; target=&quot;_blank&quot; href=&quot;https:\/\/beian.miit.gov.cn&quot;&gt;\n    &lt;span class=&quot;badge-subject&quot;&gt;\u4eac ICP\u5907&lt;\/span&gt;\n    &lt;span class=&quot;badge-value bg-lightgrey&quot;&gt; XXXXXXXX\u53f7&lt;\/span&gt;\n&lt;\/a &gt;\n&lt;a class=&quot;github-badge&quot; target=&quot;_blank&quot; href=&quot;https:\/\/cdn.jsdelivr.net\/gh\/213wasabi\/img-bed\/img-bedminiapplogo.jpg&quot;&gt;\n    &lt;span class=&quot;badge-subject&quot;&gt;\u5c0f\u7a0b\u5e8f&lt;\/span&gt;\n    &lt;span class=&quot;badge-value bg-red&quot;&gt;\u5c71\u8475\u9171\u90e8\u843d\u683c&lt;\/span&gt;\n&lt;\/a &gt;<\/code><\/pre>\n<p>\u4ee5\u4e0a\u6b65\u9aa4\u4fee\u6539\u5b8c\u6210\u4e4b\u540e\uff0c\u6e05\u9664\u7f13\u5b58\uff0c\u5237\u65b0\u535a\u5ba2\u8bd5\u8bd5\uff0c\u662f\u4e0d\u662f\u535a\u5ba2\u770b\u8d77\u6765\u6bd4\u4e4b\u524d\u7684\u987a\u773c\u591a\u4e86\u3002<br \/><img decoding=\"async\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/213wasabi\/img-bed\/img-bedexample.jpg\" alt=\"\" title=\"\"><\/p>\n<p>\u8fd8\u6709\u66f4\u591a\u6837\u5f0f\uff0c\u4f60\u4eec\u53ef\u4ee5\u81ea\u5df1\u770b\u7740\u6539\u6210\u81ea\u5df1\u7684\u4e1c\u897f\uff0c\u4ee3\u7801\u90fd\u5728\u4e0b\u65b9\u5566\\~<br \/>HTML\u4ee3\u7801\uff1a<\/p>\n<pre><code>&lt;div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;build&lt;\/span&gt;&lt;span class=&quot;badge-value bg-brightgreen&quot;&gt;passing&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;build&lt;\/span&gt;&lt;span class=&quot;badge-value bg-red&quot;&gt;failure&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;tests&lt;\/span&gt;&lt;span class=&quot;badge-value bg-green&quot;&gt;185 passed, 7 skipped&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;tests&lt;\/span&gt;&lt;span class=&quot;badge-value&quot;&gt;inaccessible&lt;\/span&gt;\n    &lt;\/div&gt;&lt;\/div&gt;&lt;div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;npm&lt;\/span&gt;&lt;span class=&quot;badge-value bg-blue&quot;&gt;v5.5.1&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;node&lt;\/span&gt;&lt;span class=&quot;badge-value bg-brightgreen&quot;&gt;&gt;=0.4.0&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;gem&lt;\/span&gt;&lt;span class=&quot;badge-value bg-orange&quot;&gt;v0.2.5&lt;\/span&gt;\n    &lt;\/div&gt;&lt;\/div&gt;&lt;div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;stars&lt;\/span&gt;&lt;span class=&quot;badge-value bg-brightgreen&quot;&gt;\u2606\u2606\u2606\u2606\u2606&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;node&lt;\/span&gt;&lt;span class=&quot;badge-value bg-yellowgreen&quot;&gt;\u2605\u2605\u2605\u2606\u2606&lt;\/span&gt;\n    &lt;\/div&gt;&lt;\/div&gt;&lt;div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;color&lt;\/span&gt;&lt;span class=&quot;badge-value bg-brightgreen&quot;&gt;brightgreen&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;color&lt;\/span&gt;&lt;span class=&quot;badge-value bg-green&quot;&gt;green&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;color&lt;\/span&gt;&lt;span class=&quot;badge-value bg-yellowgreen&quot;&gt;yellowgreen&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;color&lt;\/span&gt;&lt;span class=&quot;badge-value bg-yellow&quot;&gt;yellow&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;color&lt;\/span&gt;&lt;span class=&quot;badge-value bg-orange&quot;&gt;orange&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;color&lt;\/span&gt;&lt;span class=&quot;badge-value bg-red&quot;&gt;red&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;color&lt;\/span&gt;&lt;span class=&quot;badge-value bg-lightgrey&quot;&gt;lightgrey&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;color&lt;\/span&gt;&lt;span class=&quot;badge-value&quot;&gt;grey&lt;\/span&gt;\n    &lt;\/div&gt;\n    &lt;div class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;color&lt;\/span&gt;&lt;span class=&quot;badge-value bg-blue&quot;&gt;blue&lt;\/span&gt;\n    &lt;\/div&gt;&lt;\/div&gt;<\/code><\/pre>\n<h3>\u4e2a\u4eba\u5907\u4efd<\/h3>\n<pre><code>&lt;a class=&quot;github-badge&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;Copyright&lt;\/span&gt;\n        &lt;span class=&quot;badge-value bg-brightgreen&quot;&gt;\u00a9 &lt;?php echo date(&quot;Y-M&quot;);?&gt;&lt;\/span&gt;\n    &lt;\/a &gt;\n    &lt;a class=&quot;github-badge&quot; target=&quot;_blank&quot; href=&quot; &quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;Powered by&lt;\/span&gt;\n        &lt;span class=&quot;badge-value bg-orange&quot;&gt;Amarantos475&lt;\/span&gt;\n    &lt;\/a &gt;\n    &lt;a class=&quot;github-badge&quot; target=&quot;_blank&quot; href=&quot;https:\/\/beian.miit.gov.cn&quot;&gt;\n        &lt;span class=&quot;badge-subject&quot;&gt;\u9647 ICP\u5907&lt;\/span&gt;\n        &lt;span class=&quot;badge-value bg-lightgrey&quot;&gt;2023000056\u53f7-1&lt;\/span&gt;\n    &lt;\/a &gt;<\/code><\/pre>\n<h2>\u8f6c\u8f7d<\/h2>\n<p>\u8f6c\u8f7d\u81ea<a href=\"https:\/\/wasabi.fun\/4152.html\">\u94fe\u63a5<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u7ad9\u5907\u6848\u6210\u529f\u540e\u9700\u6ce8\u610f\u4ee5\u4e0b\u4e8b\u9879\uff1a \u6309\u7167\u975e\u7ecf\u8425\u6027\u4e92\u8054\u7f51\u4fe1\u606f\u670d\u52a1\u5907\u6848\u7ba1\u7406\u529e\u6cd5\uff0c\u5728\u60a8\u7684\u7f51\u7ad9\u9996\u9875\u5e95\u90e8\u4e2d\u95f4\u4f4d\u7f6e\uff0c\u653e\u7f6e\u60a8\u7684\u5907\u6848\u53f7\u5e76\u94fe\u63a5\u81f3\u5de5\u4fe1\u90e8\u3002 \u8bf7\u60a8\u52a1\u5fc5\u4fdd\u8bc1\u7f51\u7ad9\u5185\u5bb9\u4e0e\u5907\u6848\u4fe1\u606f\u4e00\u81f4\uff0c\u4e00\u65e6\u88ab\u67e5\u51fa\u4e0d\u4e00\u81f4\u60c5\u51b5\u5c06\u9762\u4e34\u88ab\u5173\u505c\u6574\u987f\u98ce\u9669\u3002 \u6309\u7167\u300a\u4e2d\u534e\u4eba\u6c11\u5171\u548c\u56fd\u8ba1\u7b97\u673a\u4fe1\u606f\u7cfb\u7edf\u5b89\u5168\u4fdd\u62a4\u6761\u4f8b\u300b\u7b49\u76f8\u5173\u6cd5\u5f8b\u6cd5\u89c4\uff0c\u7f51\u7ad9\u5f00\u901a\u4e4b\u65e5\u8d7730\u65e5\u5185\u5230\u516c\u53f8\u5b9e\u9645\u7ecf\u8425\u5730\u6216\u4e2a\u4eba\u5e38\u4f4f\u5730\u516c\u5b89\u673a\u5173\u5c65\u884c\u516c\u5b89\u5907\u6848\u624b\u7eed\uff0c\u5177\u4f53\u8981\u6c42\u8bf7\u53c2\u89c1\u5173\u4e8e\u516c\u5b89\u5907\u6848\u901a\u77e5\u3002 \u4f9d\u636e\u300a\u975e\u7ecf\u8425\u6027\u4e92\u8054\u7f51\u4fe1\u606f\u670d\u52a1\u5907\u6848\u7ba1\u7406\u529e\u6cd5\u300b\u7b2c\u4e8c\u5341\u4e09\u6761\u89c4\u5b9a\uff0c\u5982\u5907\u6848\u4fe1\u606f\u4e0d\u771f\u5b9e\uff0c\u5c06\u5173\u95ed\u7f51\u7ad9\u5e76\u6ce8\u9500\u5907\u6848\u3002 \u82e5\u60a8\u7684\u5907\u6848\u4fe1\u606f\u53d1\u751f\u53d8\u66f4\uff0c\u8bf7\u60a8\u5c3d\u5feb\u7533\u8bf7\u53d8\u66f4\u5907\u6848\u3002 \u76ee\u524d\u6211\u7684\u8fd9\u4e2a\u7248\u6743\u6dfb\u52a0\u662f\u5728Handsame\u4e3b\u9898\u4e0a\u8fdb\u884c\u4fee\u6539\u7684\uff0c\u522b\u7684\u4e3b\u9898\u4e5f\u4e00\u6837\u54e6\\~ CSS\u6837\u5f0f\u6dfb\u52a0\uff1a \u6253\u5f00Typecho\u7f51\u7ad9\u540e\u53f0-\u300b\u5916\u89c2-\u300b\u8bbe\u7f6e\u5916\u89c2-\u300b\u5f00\u53d1\u8005\u8bbe\u7f6e-\u300b\u81ea\u5b9a\u4e49CSS\uff0c\u6dfb\u52a0\u4ee5\u4e0bCSS\u6837\u5f0f\u3002 .github-badge { display: inline-block; border-radius: 4px; text-shadow: none; font-size: 12px; color: #fff; line-height: 15px; background-color: #ABBAC3; margin-bottom: 5px; } .github-badge .badge-subject { display: inline-block; background-color: #4D4D4D; padding: 4px 4px 4px 6px; border-top-left-radius: 4px; border-bottom-left-radius: 4px; } .github-badge .badge-value { display: inline-block; padding: 4px 6px 4px 4px; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-259","post","type-post","status-publish","format-standard","hentry","category-typecho"],"_links":{"self":[{"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/posts\/259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solost.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=259"}],"version-history":[{"count":0,"href":"https:\/\/solost.cn\/index.php?rest_route=\/wp\/v2\/posts\/259\/revisions"}],"wp:attachment":[{"href":"https:\/\/solost.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solost.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solost.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}