{"id":56067,"date":"2024-10-10T08:29:19","date_gmt":"2024-10-10T00:29:19","guid":{"rendered":"https:\/\/server.hk\/cnblog\/56067\/"},"modified":"2024-10-10T08:29:19","modified_gmt":"2024-10-10T00:29:19","slug":"wordpress-%e6%95%99%e7%a8%8b%ef%bc%9a%e5%a6%82%e4%bd%95%e6%9b%b4%e6%94%b9-wordpress-%e5%ad%97%e9%ab%94%e5%a4%a7%e5%b0%8f%e3%80%81%e9%a1%8f%e8%89%b2%e5%8f%8a%e5%84%aa%e5%8c%96","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/56067\/","title":{"rendered":"WordPress \u6559\u7a0b\uff1a\u5982\u4f55\u66f4\u6539 WordPress \u5b57\u9ad4\u5927\u5c0f\u3001\u984f\u8272\u53ca\u512a\u5316"},"content":{"rendered":"<h1 id=\"wordpress-%e6%95%99%e7%a8%8b%ef%bc%9a%e5%a6%82%e4%bd%95%e6%9b%b4%e6%94%b9-wordpress-%e5%ad%97%e9%ab%94%e5%a4%a7%e5%b0%8f%e3%80%81%e9%a1%8f%e8%89%b2%e5%8f%8a%e5%84%aa%e5%8c%96-ZVAmaLsZpH\">WordPress \u6559\u7a0b\uff1a\u5982\u4f55\u66f4\u6539 WordPress \u5b57\u9ad4\u5927\u5c0f\u3001\u984f\u8272\u53ca\u512a\u5316<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u6578\u4f4d\u6642\u4ee3\uff0c\u7db2\u7ad9\u7684\u5916\u89c0\u548c\u53ef\u8b80\u6027\u5c0d\u65bc\u5438\u5f15\u8a2a\u5ba2\u81f3\u95dc\u91cd\u8981\u3002WordPress \u4f5c\u70ba\u4e00\u500b\u6d41\u884c\u7684\u5167\u5bb9\u7ba1\u7406\u7cfb\u7d71\uff0c\u63d0\u4f9b\u4e86\u591a\u7a2e\u65b9\u6cd5\u4f86\u81ea\u5b9a\u7fa9\u7db2\u7ad9\u7684\u5b57\u9ad4\u5927\u5c0f\u548c\u984f\u8272\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728 WordPress \u4e2d\u66f4\u6539\u5b57\u9ad4\u5927\u5c0f\u3001\u984f\u8272\u53ca\u9032\u884c\u512a\u5316\uff0c\u5e6b\u52a9\u60a8\u63d0\u5347\u7db2\u7ad9\u7684\u53ef\u8b80\u6027\u548c\u7f8e\u89c0\u6027\u3002<\/p>\n<h2 id=\"%e4%b8%80%e3%80%81%e4%bd%bf%e7%94%a8%e8%87%aa%e5%ae%9a%e7%be%a9-css-%e6%9b%b4%e6%94%b9%e5%ad%97%e9%ab%94%e5%a4%a7%e5%b0%8f%e5%92%8c%e9%a1%8f%e8%89%b2-ZVAmaLsZpH\">\u4e00\u3001\u4f7f\u7528\u81ea\u5b9a\u7fa9 CSS \u66f4\u6539\u5b57\u9ad4\u5927\u5c0f\u548c\u984f\u8272<\/h2>\n<p>WordPress \u5141\u8a31\u7528\u6236\u901a\u904e\u81ea\u5b9a\u7fa9 CSS \u4f86\u4fee\u6539\u7db2\u7ad9\u7684\u5916\u89c0\u3002\u9019\u662f\u4e00\u7a2e\u9748\u6d3b\u4e14\u6709\u6548\u7684\u65b9\u6cd5\uff0c\u9069\u5408\u6709\u4e00\u5b9a\u6280\u8853\u57fa\u790e\u7684\u7528\u6236\u3002<\/p>\n<h3 id=\"1-%e9%80%b2%e5%85%a5%e8%87%aa%e5%ae%9a%e7%be%a9-css-%e7%b7%a8%e8%bc%af%e5%99%a8-ZVAmaLsZpH\">1. \u9032\u5165\u81ea\u5b9a\u7fa9 CSS \u7de8\u8f2f\u5668<\/h3>\n<ul>\n<li>\u767b\u9304\u5230\u60a8\u7684 WordPress \u5f8c\u53f0\u3002<\/li>\n<li>\u5c0e\u822a\u5230\u300c\u5916\u89c0\u300d&gt;\u300c\u81ea\u5b9a\u7fa9\u300d\u3002<\/li>\n<li>\u9078\u64c7\u300c\u984d\u5916 CSS\u300d\u3002<\/li>\n<\/ul>\n<h3 id=\"2-%e6%b7%bb%e5%8a%a0%e8%87%aa%e5%ae%9a%e7%be%a9-css-%e4%bb%a3%e7%a2%bc-ZVAmaLsZpH\">2. \u6dfb\u52a0\u81ea\u5b9a\u7fa9 CSS \u4ee3\u78bc<\/h3>\n<p>\u5728\u984d\u5916 CSS \u7684\u7de8\u8f2f\u6846\u4e2d\uff0c\u60a8\u53ef\u4ee5\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u78bc\u4f86\u66f4\u6539\u5b57\u9ad4\u5927\u5c0f\u548c\u984f\u8272\uff1a<\/p>\n<pre><code>\n\/* \u66f4\u6539\u6240\u6709\u6bb5\u843d\u7684\u5b57\u9ad4\u5927\u5c0f\u548c\u984f\u8272 *\/\np {\n    font-size: 16px; \/* \u5b57\u9ad4\u5927\u5c0f *\/\n    color: #333333; \/* \u5b57\u9ad4\u984f\u8272 *\/\n}\n\n\/* \u66f4\u6539\u6a19\u984c\u7684\u5b57\u9ad4\u5927\u5c0f\u548c\u984f\u8272 *\/\nh1 {\n    font-size: 32px; \/* \u5b57\u9ad4\u5927\u5c0f *\/\n    color: #1a1a1a; \/* \u5b57\u9ad4\u984f\u8272 *\/\n}\n<\/code><\/pre>\n<p>\u5b8c\u6210\u5f8c\uff0c\u9ede\u64ca\u300c\u767c\u4f48\u300d\u4ee5\u4fdd\u5b58\u66f4\u6539\u3002<\/p>\n<h2 id=\"%e4%ba%8c%e3%80%81%e4%bd%bf%e7%94%a8%e9%a0%81%e9%9d%a2%e5%bb%ba%e6%a7%8b%e5%99%a8%e9%80%b2%e8%a1%8c%e5%ad%97%e9%ab%94%e8%a8%ad%e7%bd%ae-ZVAmaLsZpH\">\u4e8c\u3001\u4f7f\u7528\u9801\u9762\u5efa\u69cb\u5668\u9032\u884c\u5b57\u9ad4\u8a2d\u7f6e<\/h2>\n<p>\u8a31\u591a WordPress \u4e3b\u984c\u548c\u63d2\u4ef6\uff08\u5982 Elementor \u6216 WPBakery\uff09\u63d0\u4f9b\u4e86\u53ef\u8996\u5316\u7684\u9801\u9762\u5efa\u69cb\u5668\uff0c\u8b93\u7528\u6236\u53ef\u4ee5\u8f15\u9b06\u5730\u66f4\u6539\u5b57\u9ad4\u8a2d\u7f6e\u3002<\/p>\n<h3 id=\"1-%e4%bd%bf%e7%94%a8-elementor-%e6%9b%b4%e6%94%b9%e5%ad%97%e9%ab%94-ZVAmaLsZpH\">1. \u4f7f\u7528 Elementor \u66f4\u6539\u5b57\u9ad4<\/h3>\n<ul>\n<li>\u5b89\u88dd\u4e26\u555f\u7528 Elementor \u63d2\u4ef6\u3002<\/li>\n<li>\u7de8\u8f2f\u60a8\u60f3\u8981\u66f4\u6539\u7684\u9801\u9762\uff0c\u7136\u5f8c\u9ede\u64ca\u300c\u7de8\u8f2f\u8207 Elementor\u300d\u3002<\/li>\n<li>\u9078\u64c7\u8981\u66f4\u6539\u7684\u6587\u672c\u5143\u7d20\uff0c\u7136\u5f8c\u5728\u5de6\u5074\u9762\u677f\u4e2d\u627e\u5230\u300c\u6a23\u5f0f\u300d\u9078\u9805\u3002<\/li>\n<li>\u5728\u300c\u5b57\u9ad4\u5927\u5c0f\u300d\u548c\u300c\u5b57\u9ad4\u984f\u8272\u300d\u4e2d\u9032\u884c\u8abf\u6574\u3002<\/li>\n<\/ul>\n<h2 id=\"%e4%b8%89%e3%80%81%e4%bd%bf%e7%94%a8%e4%b8%bb%e9%a1%8c%e8%a8%ad%e7%bd%ae%e6%9b%b4%e6%94%b9%e5%ad%97%e9%ab%94-ZVAmaLsZpH\">\u4e09\u3001\u4f7f\u7528\u4e3b\u984c\u8a2d\u7f6e\u66f4\u6539\u5b57\u9ad4<\/h2>\n<p>\u8a31\u591a WordPress \u4e3b\u984c\u90fd\u63d0\u4f9b\u4e86\u5167\u5efa\u7684\u5b57\u9ad4\u8a2d\u7f6e\u9078\u9805\u3002\u60a8\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u66f4\u6539\uff1a<\/p>\n<ul>\n<li>\u767b\u9304\u5230 WordPress \u5f8c\u53f0\u3002<\/li>\n<li>\u5c0e\u822a\u5230\u300c\u5916\u89c0\u300d&gt;\u300c\u4e3b\u984c\u9078\u9805\u300d\u6216\u300c\u81ea\u5b9a\u7fa9\u300d\u3002<\/li>\n<li>\u5c0b\u627e\u300c\u5b57\u9ad4\u8a2d\u7f6e\u300d\u6216\u300c\u6392\u7248\u300d\u9078\u9805\uff0c\u6839\u64da\u9700\u8981\u9032\u884c\u8abf\u6574\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%9b%9b%e3%80%81%e5%84%aa%e5%8c%96%e5%ad%97%e9%ab%94%e4%bb%a5%e6%8f%90%e5%8d%87%e7%b6%b2%e7%ab%99%e6%80%a7%e8%83%bd-ZVAmaLsZpH\">\u56db\u3001\u512a\u5316\u5b57\u9ad4\u4ee5\u63d0\u5347\u7db2\u7ad9\u6027\u80fd<\/h2>\n<p>\u9664\u4e86\u66f4\u6539\u5b57\u9ad4\u5927\u5c0f\u548c\u984f\u8272\uff0c\u512a\u5316\u5b57\u9ad4\u7684\u52a0\u8f09\u901f\u5ea6\u4e5f\u662f\u63d0\u5347\u7db2\u7ad9\u6027\u80fd\u7684\u91cd\u8981\u6b65\u9a5f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5efa\u8b70\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528 Google Fonts \u7b49\u5916\u90e8\u5b57\u9ad4\u670d\u52d9\uff0c\u9019\u4e9b\u670d\u52d9\u901a\u5e38\u6703\u9032\u884c\u512a\u5316\u4ee5\u63d0\u9ad8\u52a0\u8f09\u901f\u5ea6\u3002<\/li>\n<li>\u9078\u64c7\u5408\u9069\u7684\u5b57\u9ad4\u683c\u5f0f\uff0c\u5982 WOFF \u6216 WOFF2\uff0c\u9019\u4e9b\u683c\u5f0f\u5728\u7db2\u9801\u4e0a\u52a0\u8f09\u901f\u5ea6\u66f4\u5feb\u3002<\/li>\n<li>\u8003\u616e\u4f7f\u7528\u5b57\u9ad4\u5b50\u96c6\uff0c\u50c5\u52a0\u8f09\u7db2\u7ad9\u6240\u9700\u7684\u5b57\u6bcd\u548c\u7b26\u865f\uff0c\u6e1b\u5c11\u4e0d\u5fc5\u8981\u7684\u5b57\u9ad4\u6578\u64da\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-ZVAmaLsZpH\">\u7e3d\u7d50<\/h2>\n<p>\u901a\u904e\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u8f15\u9b06\u5730\u5728 WordPress \u4e2d\u66f4\u6539\u5b57\u9ad4\u5927\u5c0f\u548c\u984f\u8272\uff0c\u4e26\u9032\u884c\u512a\u5316\uff0c\u4ee5\u63d0\u5347\u7db2\u7ad9\u7684\u53ef\u8b80\u6027\u548c\u6027\u80fd\u3002\u7121\u8ad6\u662f\u4f7f\u7528\u81ea\u5b9a\u7fa9 CSS\u3001\u9801\u9762\u5efa\u69cb\u5668\u9084\u662f\u4e3b\u984c\u8a2d\u7f6e\uff0c\u9019\u4e9b\u6280\u5de7\u90fd\u80fd\u5e6b\u52a9\u60a8\u6253\u9020\u4e00\u500b\u66f4\u5177\u5438\u5f15\u529b\u7684\u7db2\u7ad9\u3002\u5982\u679c\u60a8\u9700\u8981\u7a69\u5b9a\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\u4f86\u652f\u6301\u60a8\u7684\u7db2\u7ad9\uff0c\u8acb\u8003\u616e\u6211\u5011\u7684\u670d\u52d9\uff0c\u8b93\u60a8\u7684\u7db2\u7ad9\u904b\u884c\u66f4\u52a0\u6d41\u66a2\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b78\u7fd2\u5982\u4f55\u5728 WordPress \u4e2d\u66f4\u6539\u5b57\u9ad4\u5927\u5c0f\u548c\u984f\u8272\uff0c\u4e26\u512a\u5316\u7db2\u7ad9\u5916\u89c0\uff0c\u63d0\u5347\u7528\u6236\u9ad4\u9a57\u548c\u53ef\u8b80\u6027\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-56067","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/56067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=56067"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/56067\/revisions"}],"predecessor-version":[{"id":56068,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/56067\/revisions\/56068"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=56067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=56067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=56067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}