{"id":28912,"date":"2024-11-25T09:57:58","date_gmt":"2024-11-25T01:57:58","guid":{"rendered":"https:\/\/fwq.ai\/blog\/28912\/"},"modified":"2024-11-25T09:57:58","modified_gmt":"2024-11-25T01:57:58","slug":"dede%e6%a0%87%e7%ad%be%e4%ba%91%e5%a6%82%e4%bd%95%e7%94%9f%e6%88%90tag%e6%a0%87%e7%ad%be","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/28912\/","title":{"rendered":"dede\u6807\u7b7e\u4e91\u5982\u4f55\u751f\u6210tag\u6807\u7b7e"},"content":{"rendered":"<p style=\"text-align: center\"><strong><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5dfc2ed0857b6725.jpg\" class=\"aligncenter\" title=\"dede\u6807\u7b7e\u4e91\u5982\u4f55\u751f\u6210tag\u6807\u7b7e\u63d2\u56fe\" alt=\"dede\u6807\u7b7e\u4e91\u5982\u4f55\u751f\u6210tag\u6807\u7b7e\u63d2\u56fe\" \/><\/strong><\/p>\n<p><strong>dede\u6807\u7b7e\u4e91\u5982\u4f55\u751f\u6210tag\u6807\u7b7e?<\/strong><\/p>\n<p><strong>dede\u6807\u7b7e\u4e91\u5982\u4f55\u751f\u6210\u4e0d\u540c\u989c\u8272\u3001\u4e0d\u540c\u5927\u5c0f\u7684tag\u6807\u7b7e<\/strong><\/p>\n<p>tag\u6807\u7b7e\u505a\u7f51\u7ad9\u7684\u670b\u53cb\u60f3\u5fc5\u77e5\u9053\u5427\uff0c\u5728\u672c\u6587\u8981\u4e3a\u5927\u5bb6\u8bb2\u89e3\u7684\u7684\u662fdede\u6807\u7b7e\u4e91\u7684\u4f7f\u7528\uff0c\u5982\u4f55\u751f\u6210\u4e0d\u540c\u989c\u8272\u3001\u4e0d\u540c\u5927\u5c0f\u7684tag\u6807\u7b7e\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e0b<\/p>\n<p>&nbsp;&nbsp;\u63a8\u8350\u5b66\u4e60\uff1a<\/p>\n<p>1\u3001\u9009\u62e9\u4f60\u6240\u8981\u52a0\u9875\u9762\u7684\u6a21\u677f\uff0c\u4e00\u822c\u662f\u5728\u9996\u9875index.htm\u52a0\u4e0a\u5982\u4e0b\u4ee3\u7801&nbsp;<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>&lt;!-- \/\u4e0b\u9762\u5f00\u59cbtag\u6807\u7b7e\u4e91 --&gt;&nbsp;\n&lt;div&gt;&nbsp;\n&lt;dl&gt;&nbsp;&lt;dt&gt;&lt;strong&gt;Tags\u6807\u7b7e\u4e91&lt;\/strong&gt;&lt;\/dt&gt;&nbsp;\n&lt;dd&gt;{dede:tag&nbsp;row='45'&nbsp;getall='1'&nbsp;sort='hot'}&nbsp;\n&lt;a&gt;[field:tag&nbsp;\/]&lt;\/a&gt;&nbsp;\n{\/dede:tag}&nbsp;\n&lt;\/dd&gt;&nbsp;\n&lt;\/dl&gt;&nbsp;\n&lt;\/div&gt;&nbsp;\n&lt;!-- \/tag\u6807\u7b7e\u4e91\u7ed3\u675f --&gt;&nbsp;\n***\u6216\uff08\u6d4b\u8bd5\u901a\u8fc7\uff09***&nbsp;\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<li>&nbsp;<br \/>\n<h2>\u70ed\u95e8\u6807\u7b7e<\/h2>\n<p> &nbsp; &nbsp; {dede:tag&nbsp;row=&#8217;35&#8217;&nbsp;sort=&#8217;month&#8217;}&nbsp; &nbsp; {\/dede:tag}&nbsp; &nbsp; <\/li>\n<p>2\u3001\u5728\/include\/common.func.php \u4e2d\u52a0\u5165\u5982\u4e0b\u51fd\u6570\u3002&nbsp;<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>function&nbsp;getTagStyle()&nbsp;\n{&nbsp;\n$minFontSize=8;&nbsp;\/\/\u6700\u5c0f\u5b57\u4f53\u5927\u5c0f,\u53ef\u6839\u636e\u9700\u8981\u81ea\u884c\u66f4\u6539&nbsp;\n$maxFontSize=18;&nbsp;\/\/\u6700\u5927\u5b57\u4f53\u5927\u5c0f,\u53ef\u6839\u636e\u9700\u8981\u81ea\u884c\u66f4\u6539&nbsp;\nreturn&nbsp;'font-size:'.($minFontSize+lcg_value()*(abs($maxFontSize-$minFontSize))).'px;color:#'.dechex(rand(0,255)).dechex(rand(0,196)).dechex(rand(0,255));&nbsp;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6b64\u51fd\u6570\u7684\u4f5c\u7528\u662f\u8f93\u51fa\u968f\u673a\u7684\u6837\u5f0f\uff0c\u5305\u62ecfont-size\u548ccolor\u3002&nbsp;<\/p>\n<p>\u5982\u679c\u4f60\u60f3\u6307\u5b9a\u53ea\u663e\u793a\u51e0\u4e2a\u5b57\u4f53\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u5b8c\u5168\u968f\u673a\uff0c\u8bf7\u5c06\u4e0a\u9762\u7684\u51fd\u6570\u4ee3\u7801\u4fee\u6539\u4e3a\uff1a&nbsp;<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>function&nbsp;getTagStyle()&nbsp;\n{&nbsp;\n$sizearray&nbsp;=&nbsp;array('8','9','10','11','12','20');&nbsp;\/\/\u81ea\u5b9a\u4e49\u5b57\u4f53\u5927\u5c0f,\u53ef\u6839\u636e\u9700\u8981\u81ea\u884c\u4fee\u6539&nbsp;\nreturn&nbsp;'font-size:'.$sizearray[rand(0,count($sizearray))].'pt;color:#'.dechex(rand(0,255)).dechex(rand(0,196)).dechex(rand(0,255));&nbsp;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>3\u3001\u751f\u6210\u4ee5\u4e0b\u5373\u53ef\u770b\u5230\u6548\u679c\uff01&nbsp;<\/p>\n<p>\u6700\u540e\u8ba9\u5927\u5bb6\u770b\u4e00\u4e0b\u6548\u679c\u56fe\uff1a\u6548\u679c\u56fe&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/image\/904\/954\/365\/1576808005536916.png\" class=\"aligncenter\" title=\"dede\u6807\u7b7e\u4e91\u5982\u4f55\u751f\u6210tag\u6807\u7b7e\u63d2\u56fe1\" alt=\"dede\u6807\u7b7e\u4e91\u5982\u4f55\u751f\u6210tag\u6807\u7b7e\u63d2\u56fe1\" \/><\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fdede\u6807\u7b7e\u4e91\u5982\u4f55\u751f\u6210tag\u6807\u7b7e\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>dede\u6807\u7b7e\u4e91\u5982\u4f55\u751f\u6210tag\u6807\u7b7e? dede\u6807\u7b7e\u4e91\u5982\u4f55\u751f\u6210\u4e0d\u540c\u989c\u8272\u3001\u4e0d\u540c\u5927\u5c0f\u7684tag\u6807\u7b7e tag\u6807\u7b7e\u505a\u7f51\u7ad9\u7684\u670b\u53cb\u60f3\u5fc5\u77e5\u9053\u5427\uff0c\u5728\u672c\u6587\u8981\u4e3a\u5927\u5bb6\u8bb2\u89e3\u7684\u7684\u662fdede\u6807\u7b7e\u4e91\u7684\u4f7f\u7528\uff0c\u5982\u4f55\u751f\u6210\u4e0d\u540c\u989c\u8272\u3001\u4e0d\u540c\u5927\u5c0f\u7684tag\u6807\u7b7e\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e0b &nbsp;&nbsp;\u63a8\u8350\u5b66\u4e60\uff1a 1\u3001\u9009\u62e9\u4f60\u6240\u8981\u52a0\u9875\u9762\u7684\u6a21\u677f\uff0c\u4e00\u822c\u662f\u5728\u9996\u9875index.htm\u52a0\u4e0a\u5982\u4e0b\u4ee3\u7801&nbsp; \u4ee3\u7801\u5982\u4e0b: &lt;!&#8211; \/\u4e0b\u9762\u5f00\u59cbtag\u6807\u7b7e\u4e91 &#8211;&gt;&nbsp; &lt;div&gt;&nbsp; &lt;dl&gt;&nbsp;&lt;dt&gt;&lt;strong&gt;Tags\u6807\u7b7e\u4e91&lt;\/strong&gt;&lt;\/dt&gt;&nbsp; &lt;dd&gt;{dede:tag&nbsp;row=&#8217;45&#8217;&nbsp;getall=&#8217;1&#8242;&nbsp;sort=&#8217;hot&#8217;}&nbsp; &lt;a&gt;[field:tag&nbsp;\/]&lt;\/a&gt;&nbsp; {\/dede:tag}&nbsp; &lt;\/dd&gt;&nbsp; &lt;\/dl&gt;&nbsp; &lt;\/div&gt;&nbsp; &lt;!&#8211; \/tag\u6807\u7b7e\u4e91\u7ed3\u675f &#8211;&gt;&nbsp; ***\u6216\uff08\u6d4b\u8bd5\u901a\u8fc7\uff09***&nbsp; \u767b\u5f55\u540e\u590d\u5236 &nbsp; \u70ed\u95e8\u6807\u7b7e &nbsp; &nbsp; {dede:tag&nbsp;row=&#8217;35&#8217;&nbsp;sort=&#8217;month&#8217;}&nbsp; &nbsp; {\/dede:tag}&nbsp; &nbsp; 2\u3001\u5728\/include\/common.func.php \u4e2d\u52a0\u5165\u5982\u4e0b\u51fd\u6570\u3002&nbsp; \u4ee3\u7801\u5982\u4e0b: function&nbsp;getTagStyle()&nbsp; {&nbsp; $minFontSize=8;&nbsp;\/\/\u6700\u5c0f\u5b57\u4f53\u5927\u5c0f,\u53ef\u6839\u636e\u9700\u8981\u81ea\u884c\u66f4\u6539&nbsp; $maxFontSize=18;&nbsp;\/\/\u6700\u5927\u5b57\u4f53\u5927\u5c0f,\u53ef\u6839\u636e\u9700\u8981\u81ea\u884c\u66f4\u6539&nbsp; return&nbsp;&#8216;font-size:&#8217;.($minFontSize+lcg_value()*(abs($maxFontSize-$minFontSize))).&#8217;px;color:#&#8217;.dechex(rand(0,255)).dechex(rand(0,196)).dechex(rand(0,255));&nbsp; } \u767b\u5f55\u540e\u590d\u5236 \u6b64\u51fd\u6570\u7684\u4f5c\u7528\u662f\u8f93\u51fa\u968f\u673a\u7684\u6837\u5f0f\uff0c\u5305\u62ecfont-size\u548ccolor\u3002&nbsp; \u5982\u679c\u4f60\u60f3\u6307\u5b9a\u53ea\u663e\u793a\u51e0\u4e2a\u5b57\u4f53\u5927\u5c0f\uff0c\u800c\u4e0d\u662f\u5b8c\u5168\u968f\u673a\uff0c\u8bf7\u5c06\u4e0a\u9762\u7684\u51fd\u6570\u4ee3\u7801\u4fee\u6539\u4e3a\uff1a&nbsp; \u4ee3\u7801\u5982\u4e0b: function&nbsp;getTagStyle()&nbsp; {&nbsp; $sizearray&nbsp;=&nbsp;array(&#8216;8&#8242;,&#8217;9&#8242;,&#8217;10&#8217;,&#8217;11&#8217;,&#8217;12&#8217;,&#8217;20&#8217;);&nbsp;\/\/\u81ea\u5b9a\u4e49\u5b57\u4f53\u5927\u5c0f,\u53ef\u6839\u636e\u9700\u8981\u81ea\u884c\u4fee\u6539&nbsp; return&nbsp;&#8216;font-size:&#8217;.$sizearray[rand(0,count($sizearray))].&#8217;pt;color:#&#8217;.dechex(rand(0,255)).dechex(rand(0,196)).dechex(rand(0,255));&nbsp; } \u767b\u5f55\u540e\u590d\u5236 3\u3001\u751f\u6210\u4ee5\u4e0b\u5373\u53ef\u770b\u5230\u6548\u679c\uff01&nbsp; \u6700\u540e\u8ba9\u5927\u5bb6\u770b\u4e00\u4e0b\u6548\u679c\u56fe\uff1a\u6548\u679c\u56fe&nbsp; \u4ee5\u4e0a\u5c31\u662fdede\u6807\u7b7e\u4e91\u5982\u4f55\u751f\u6210tag\u6807\u7b7e\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-28912","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=28912"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28912\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=28912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=28912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=28912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}