{"id":2092,"date":"2018-11-26T21:38:09","date_gmt":"2018-11-26T13:38:09","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=2092"},"modified":"2018-11-26T21:38:09","modified_gmt":"2018-11-26T13:38:09","slug":"%e7%bb%87%e6%a2%a6dedecms%e5%88%97%e8%a1%a8%e9%a1%b5%e7%bc%a9%e7%95%a5%e5%9b%be%e6%9c%89%e5%88%99%e6%98%be%e7%a4%ba%ef%bc%8c%e6%b2%a1%e6%9c%89%e7%bc%a9%e7%95%a5%e5%9b%be%e6%97%b6%e8%87%aa%e5%8a%a8","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/2092.html","title":{"rendered":"\u7ec7\u68a6DEDECMS\u5217\u8868\u9875\u7f29\u7565\u56fe\u6709\u5219\u663e\u793a\uff0c\u6ca1\u6709\u7f29\u7565\u56fe\u65f6\u81ea\u52a8\u53bb\u6389\u56fe\u7247DIV\u6807\u7b7e\u3002"},"content":{"rendered":"

\u4eca\u5929\u5728\u505a\u4e00\u4e2a\u5217\u8868\u9875\u9762\u65f6\uff0c\u60f3\u8ba9\u5217\u8868\u9875\u7684\u7f29\u7565\u56fe\u6709\u5219\u663e\u793a\uff0c\u6ca1\u6709\u7f29\u7565\u56fe\u5c31\u4e0d\u663e\u793a\uff08\u9ed8\u8ba4\u662f\u663e\u793a\u56fa\u5b9a\u7684\u4e00\u5f20\u56fe\u7247\uff09\uff0c\u8c03\u7528\u4ee3\u7801\uff1a<\/p>\n

[field:array runphp='yes']\r\n@me = (strpos(@me['litpic'],'defaultpic') ? \"\" :   \r\n\"<img src='{@me['litpic']}'\/>\");   \r\n[\/field:array]<\/code><\/pre>\n

\u4f46\u8c03\u7528\u51fa\u6765\u540e\u53d1\u73b0\uff0c\u786e\u5b9e\u662f\u6709\u56fe\u7247\u65f6\u663e\u793a\uff0c\u6ca1\u56fe\u65f6\u4e0d\u663e\u793a\u9ed8\u8ba4\u7684\u7f29\u7565\u56fe\uff0c\u4f46\u6ca1\u56fe\u7247\u7684\u5217\u8868\u91cc\u9762\u4ecd\u7136\u628a\u56fe\u7247\u4f4d\u7f6e\u5360\u7528\u7740\uff0c\u5bfc\u81f4\u6587\u7ae0\u6807\u9898\u6362\u884c\u4e86\uff0c\u4e0d\u597d\u770b\uff0c\u5982\u4e0b\u56fe<\/p>\n

\"\"<\/a><\/p>\n

\u67e5\u770b\u6e90\u4ee3\u7801\u53d1\u73b0\uff0c\u56fe\u7247\u7684DIV\u6807\u7b7e\u91cc\u9762\u867d\u7136\u7a7a\u7740\uff0c\u4f46\u4ecd\u7136\u5360\u7740\u4f4d\u7f6e\uff0c<\/p>\n

\"\"<\/a><\/p>\n

\u628a\u56fe\u7247\u5bbd\u5ea6\u53bb\u6389\u8bd5\uff0c\u7ed3\u679c\u6ca1\u56fe\u7247\u7684\u663e\u793a\u6b63\u5e38\u7684\uff0c\u4f46\u6709\u56fe\u7247\u7684\u663e\u793a\u5bbd\u5ea6\u4e0d\u4e00\u6837\u3002<\/p>\n

\"\"<\/a><\/p>\n

\u6240\u4ee5\uff0c\u6211\u5c31\u60f3\u80fd\u4e0d\u80fd\u6709\u4e2a\u5224\u65ad\uff0c\u5728\u8fd9\u4e2a\u56fe\u7247\u6807\u7b7e\u6709\u56fe\u7247\u65f6\uff0c\u5219\u663e\u793a\uff0c\u6ca1\u6709\u56fe\u7247\u65f6\uff0c\u8fd9\u4e2a\u6807\u7b7e\u5c31\u81ea\u52a8\u6d88\u5931\u3002\u6211\u5bf9PHP\u4ee3\u7801\u4e0d\u592a\u61c2\uff0c\u540e\u7ecf\u7fa4\u91cc\u5927\u795e\u6307\u70b9\uff0c\u7ed9\u51fa\u4e86\u8c03\u7528\u4ee3\u7801\uff1a<\/p>\n

[field:litpic runphp=yes]if(@me == '\/images\/defaultpic.gif')@me = \"\";else @me = \"<div class='news-pic'><\/span><img src='@me'><\/div><\/span>\";[\/field:litpic]<\/code><\/pre>\n

\u4e0a\u9762\u7ea2\u8272\u4ee3\u7801\u5c31\u662f\u5728\u6ca1\u6709\u56fe\u7247\u65f6\u81ea\u52a8\u6d88\u5931\u7684div\u6807\u7b7e\u3002<\/p>\n

\"\"<\/a><\/p>\n

\u7ecf\u6d4b\u8bd5\u6b63\u5e38\u3002\u5728\u6b64\u611f\u8c22dedehtml\u5927\u795e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4eca\u5929\u5728\u505a\u4e00\u4e2a\u5217\u8868\u9875\u9762\u65f6\uff0c\u60f3\u8ba9\u5217\u8868\u9875\u7684\u7f29\u7565\u56fe\u6709\u5219\u663e\u793a\uff0c\u6ca1\u6709\u7f29\u7565\u56fe\u5c31\u4e0d\u663e\u793a\uff08\u9ed8\u8ba4\u662f\u663e\u793a\u56fa\u5b9a\u7684\u4e00\u5f20\u56fe\u7247\uff09\uff0c\u8c03\u7528\u4ee3\u7801\uff1a […]<\/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":[43,696,180,308],"class_list":["post-2092","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-div","tag-180","tag-308"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2092","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=2092"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2092\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=2092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=2092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=2092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}