{"id":26087,"date":"2020-05-22T14:48:14","date_gmt":"2020-05-22T06:48:14","guid":{"rendered":"https:\/\/facekungfu.com\/%e4%ba%94%e7%a8%ae%e8%87%aa%e8%a8%82-css-%e7%9a%84%e6%96%b9%e6%b3%95%ef%bc%8c%e5%8c%85%e6%8b%ac%e5%8f%a4%e9%a8%b0%e5%a0%a1%e5%8d%80%e5%a1%8a%e7%b7%a8%e8%bc%af%e5%99%a8\/"},"modified":"2025-02-15T21:25:06","modified_gmt":"2025-02-15T13:25:06","slug":"five-methods-of-custom-css-including-for-gutenberg-block-editor-and-elementor","status":"publish","type":"post","link":"https:\/\/ke2b.com\/zh-hant\/five-methods-of-custom-css-including-for-gutenberg-block-editor-and-elementor\/","title":{"rendered":"\u5982\u4f55\u5728 WordPress \u81ea\u8a02 CSS \u8a9e\u6cd5\uff1a5 \u7a2e\uff0c\u5305\u62ec\u5340\u584a\u7de8\u8f2f\u5668\u8207 Elementor \u2013 \u5404\u7248\u672c\u7686\u9069\u7528"},"content":{"rendered":"\n<p>\u672c\u6587\u540c\u6642\u7528\u65bc\u6b64\u6b21 WordPress \u5c0f\u805a\u7684\u8b1b\u984c\u5206\u4eab\uff01<\/p>\n\n<p><a target=\"_blank\" href=\"https:\/\/www.meetup.com\/Taoyuan-WordPress-Meetup\/events\/270651847\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">https:\/\/www.meetup.com\/Taoyuan-WordPress-Meetup\/events\/270651847\/<\/a><\/p>\n\n<p>\u300c\u5982\u4f55\u5728 WordPress \u81ea\u8a02 CSS\uff1f\u300d\u662f\u5e38\u898b\u7684\u554f\u984c\u4e4b\u4e00\u3002 \u6839\u64da\u5be6\u52d9\u7d93\u9a57\u8207\u5c08\u696d\u8003\u91cf\uff0c\u63d0\u51fa\u4e94\u7a2e\u65b9\u6cd5\uff0c\u5305\u62ec\u6700\u9069\u5408\u60a8\u689d\u4ef6\u8207\u9700\u6c42\u7684\u9078\u9805\u3002 <\/p>\n\n<h2 class=\"wp-block-heading\">\u65b9\u6cd5\u4e00\u3001<br\/>\u4f7f\u7528 WordPress \u7684\u81ea\u8a02 CSS \u2013 \u300c\u9644\u52a0\u7684 CSS \u300d\u7d22\u5f15\u6a19\u7c64<br\/><br\/> <\/h2>\n\n<p>\u5f9e WordPress 4.7 \u958b\u59cb\uff0c\u60a8\u53ef\u4ee5\u5f9e<a target=\"_blank\" href=\"https:\/\/codex.wordpress.org\/Appearance_Customize_Screen\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">\u5916\u89c0\u81ea\u8a02\u756b\u9762<\/a>\u5c07\u81ea\u8a02 CSS \u6dfb\u52a0\u81f3\u7576\u524d\u4f48\u666f\u4e3b\u984c\uff0c\u7121\u9700\u984d\u5916\u7684\u5916\u639b\u7a0b\u5f0f\u4e5f\u7121\u9700\u5c0d\u4f48\u666f\u4e3b\u984c\u548c\u5b50\u4e3b\u984c\u505a\u76f4\u63a5\u7684\u7de8\u8f2f\u3002 \u53ea\u9700\u5728\u8981\u5ba2\u88fd\u7684\u7576\u524d\u4e3b\u984c\uff0c\u9078\u64c7\u300c<strong>\u9644\u52a0 CSS<\/strong>\u300d\u7d22\u5f15\u6a19\u7c64\u5373\u53ef\u958b\u59cb\uff01 <\/p>\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1550\" height=\"759\" src=\"https:\/\/i0.wp.com\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg?resize=1550%2C759&#038;quality=89&#038;ssl=1\" alt=\"&#x7BC4;&#x4F8B; &#x2013; &#x4F7F;&#x7528; WordPress &#x7684;&#x81EA;&#x8A02; CSS &#x2013; &#x300C;&#x9644;&#x52A0;&#x7684; CSS &#x300D;&#x7D22;&#x5F15;&#x6A19;&#x7C64;\" class=\"wp-image-25906\" srcset=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg?w=1920&amp;quality=89&amp;ssl=1 1920w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg?resize=1200%2C588&amp;quality=89&amp;ssl=1 1200w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg?resize=150%2C73&amp;quality=89&amp;ssl=1 150w\" sizes=\"(max-width: 1550px) 100vw, 1550px\" \/><figcaption class=\"wp-element-caption\">\u7bc4\u4f8b \u2013 \u4f7f\u7528 WordPress \u7684\u81ea\u8a02 CSS \u2013 \u300c\u9644\u52a0\u7684 CSS \u300d\u7d22\u5f15\u6a19\u7c64<\/figcaption><\/figure>\n\n<p>\u60a8\u7684\u81ea\u8a02 CSS \u8b8a\u66f4\uff0c\u90fd\u6703\u4ee5\u9810\u89bd\u756b\u9762\u5373\u6642\u986f\u793a\uff0c\u5c31\u50cf\u5728\u81ea\u8a02\u5668\u4e2d\u6240\u505a\u7684\u5176\u4ed6\u8b8a\u66f4\u4e00\u6a23\uff1b\u9019\u8868\u793a\u60a8\u80fd\u65b9\u4fbf\u5730\u8abf\u6574\u81ea\u8a02\u7684\u5916\u89c0\u4e26\u4f7f\u5176\u5b8c\u5584\u5230\u60a8\u6eff\u610f\u70ba\u6b62\uff0c\u800c\u7121\u9700\u505a\u4efb\u4f55\u5be6\u969b\u7684\u5167\u5bb9\u4fee\u6539\uff01<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>VIA Codex, WordPress.ORG<\/p>\n<cite><a  href=\"https:\/\/codex.wordpress.org\/CSS\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">https:\/\/codex.wordpress.org\/CSS<\/a><\/cite><\/blockquote>\n\n<p>\u8acb\u8a18\u4f4f\uff0c\u9019\u88e1\u7684\u81ea\u8a02 CSS \u66f4\u52d5\u5167\u5bb9\uff0c\u6703\u8ddf\u8457\u4f48\u666f\u4e3b\u984c\u8d70\u3002 \u9019\u610f\u5473\u8457\uff0c\u5982\u679c\u60a8\u66f4\u6539\u70ba\u65b0\u7684\u4f48\u666f\u4e3b\u984c\uff0c\u60a8\u7684\u81ea\u8a02 CSS \u6a23\u5f0f\u5c07\u4e0d\u518d\u8655\u65bc\u751f\u6548\u72c0\u614b(\u7576\u7136\uff0c\u5982\u679c\u60a8\u66f4\u6539\u56de\u4ee5\u524d\u7684\u4e3b\u984c\uff0c\u5b83\u5011\u5c07\u8ddf\u8457\u8a72\u4e3b\u984c\u7684\u555f\u7528\u800c\u751f\u6548)\u3002 <\/p>\n\n<p>\u512a\u9ede\uff1a<\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u539f\u751f\u3001\u53ef\u7ba1\u7406\u3001\u7c21\u55ae<\/li>\n\n\n\n<li>\u7121\u9700\u591a\u6309\u5132\u5b58\u6216\u591a\u9918\u6b65\u9a5f\uff0c\u5c31\u80fd\u9810\u89bd\u5373\u6642\u6548\u679c\u3002<\/li>\n\n\n\n<li>\u9069\u5408\u6240\u6709\u4ff1\u5099 CSS \u57fa\u790e\u7684\u4eba\uff0c\u4e5f\u9069\u5408\u4efb\u4f55\u61c2\u300c\u8907\u88fd\u8cbc\u4e0a\u300d\u7684\u4eba\uff0c\u53ea\u8981\u4f86\u6e90\u8a9e\u6cd5\u5305\u62ec\u5143\u7d20\u9078\u5b9a\u6b63\u78ba\u3002<\/li>\n<\/ul>\n\n<p>\u7f3a\u9ede\uff1a<\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u8a9e\u6cd5\u6b04\u4f4d\u7684\u5bec\u5ea6\u7121\u6cd5\u8abf\u6574\u3002 <\/li>\n<\/ul>\n\n<p>\u4e00\u9ad4\u5169\u9762: \u6bcf\u5957\u81ea\u8a02 CSS \u90fd\u8ddf\u8457\u5176\u5c0d\u61c9\u7684\u4f48\u666f\u4e3b\u984c\u751f\u6548\u3002<\/p>\n\n<h3 class=\"wp-block-heading\">(\u5be6\u4f5c\u6642\u9593)<\/h3>\n\n<hr class=\"wp-block-separator has-text-color has-primary-color has-css-opacity has-primary-background-color has-background is-style-dots\"\/>\n\n<h2 class=\"wp-block-heading\">\u65b9\u6cd5\u4e8c\u3001<br\/>\u4f7f\u7528 Code Snippets \u7684\u81ea\u8a02 CSS<\/h2>\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-plugin-directory wp-block-embed-plugin-directory\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"xqT3d5LFXa\"><a  href=\"https:\/\/tw.wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">Code Snippets<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"Code Snippets &#8212; Plugin Directory\" src=\"https:\/\/tw.wordpress.org\/plugins\/code-snippets\/embed\/#?secret=nOxssghc6Y#?secret=xqT3d5LFXa\" data-secret=\"xqT3d5LFXa\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\"><a target=\"_blank\" href=\"https:\/\/tw.wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">https:\/\/tw.wordpress.org\/plugins\/code-snippets\/<\/a><\/figcaption><\/figure>\n\n<p>Code Snippets \u672c\u8eab\u662f\u80fd\u5920\uff0c\u4ee5\u7c21\u55ae\u3001\u4e7e\u6de8\u7684\u65b9\u5f0f\u9054\u6210\u5728\u589e\u6539 PHP \u7a0b\u5f0f\u78bc\u7247\u6bb5\u7684\u5916\u639b\u3002\u514d\u9664\u70ba\u4e86\u81ea\u8a02\u7a0b\u5f0f\u78bc\u7247\u6bb5\uff0c\u800c\u4fee\u6539\u4f48\u666f\u4e3b\u984c\u7684 <code>functions.php<\/code> \u6a94\u6848\u7684\u5fc5\u8981\u6027\u3002 <\/p>\n\n<p><strong>\u4e0d\u53ea PHP<\/strong>\uff0c<strong>\u9084\u80fd\u65b0\u589e CSS, JS, HTML<\/strong> \u7b49\u985e\u578b\u7684\u7a0b\u5f0f\u78bc\u7247\u6bb5\u4f9b\u7db2\u7ad9\u5ba2\u88fd\u8207\u904b\u4f5c\u3002<\/p>\n\n<p>\u8acb\u898b\u4ee5\u4e0b\u7684\u81ea\u8a02 CSS \u7a0b\u5f0f\u78bc\u7247\u6bb5\u7bc4\u4f8b\uff1a<\/p>\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1550\" height=\"629\" src=\"https:\/\/i0.wp.com\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png?resize=1550%2C629&#038;quality=80&#038;ssl=1\" alt=\"&#x7BC4;&#x4F8B; &#x2013; &#x4F7F;&#x7528; Code Snippets &#x7684;&#x81EA;&#x8A02; CSS\" class=\"wp-image-25908\" srcset=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png?w=1696&amp;quality=80&amp;ssl=1 1696w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png?resize=1200%2C487&amp;quality=80&amp;ssl=1 1200w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Code-Snippets.png?resize=150%2C61&amp;quality=80&amp;ssl=1 150w\" sizes=\"(max-width: 1550px) 100vw, 1550px\" \/><figcaption class=\"wp-element-caption\">\u7bc4\u4f8b \u2013 \u4f7f\u7528 Code Snippets \u7684\u81ea\u8a02 CSS<\/figcaption><\/figure>\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1550\" height=\"748\" src=\"https:\/\/i0.wp.com\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png?resize=1550%2C748&#038;quality=80&#038;ssl=1\" alt=\"&#x7BC4;&#x4F8B; &#x2013; &#x4F7F;&#x7528; Code Snippets &#xFF0C;&#x7528;&#x65BC; AMP &#x7684;&#x81EA;&#x8A02; CSS &#x7A0B;&#x5F0F;&#x78BC;&#x7247;&#x6BB5;\" class=\"wp-image-25910\" srcset=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png?w=1851&amp;quality=80&amp;ssl=1 1851w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png?resize=1200%2C579&amp;quality=80&amp;ssl=1 1200w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-One-of-Our-Custom-CSS-for-AMP-in-WordPress-Code-Snippets.png?resize=150%2C72&amp;quality=80&amp;ssl=1 150w\" sizes=\"(max-width: 1550px) 100vw, 1550px\" \/><figcaption class=\"wp-element-caption\">\u7bc4\u4f8b \u2013 \u4f7f\u7528 Code Snippets \uff0c\u7528\u65bc AMP \u7684\u81ea\u8a02 CSS \u7a0b\u5f0f\u78bc\u7247\u6bb5<\/figcaption><\/figure>\n\n<p>\u60a8\u4e5f\u80fd\u9078\u64c7\u985e\u4f3c\u7684\u5916\u639b\uff0c\u5305\u62ec\u5c08\u7528\u65bc Header \u8207 Footer \u7684\u5916\u639b\u3002<\/p>\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-plugin-directory wp-block-embed-plugin-directory\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"U27t6RTDui\"><a  href=\"https:\/\/tw.wordpress.org\/plugins\/header-footer-code-manager\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">Header Footer Code Manager<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"Header Footer Code Manager &#8212; Plugin Directory\" src=\"https:\/\/tw.wordpress.org\/plugins\/header-footer-code-manager\/embed\/#?secret=RmNVaFuOuO#?secret=U27t6RTDui\" data-secret=\"U27t6RTDui\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\"><a target=\"_blank\" href=\"https:\/\/tw.wordpress.org\/plugins\/header-footer-code-manager\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">https:\/\/tw.wordpress.org\/plugins\/header-footer-code-manager\/<\/a><\/figcaption><\/figure>\n\n<p>\u512a\u9ede\uff1a<\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u53ef\u7ba1\u7406\u3001\u591a\u529f\u80fd\u3001\u9ad8\u5ea6\u5f48\u6027\uff0c\u4e14\u4e0d\u7b97\u96e3\u7684\u81ea\u8a02 CSS \u65b9\u6cd5\u3002<\/li>\n\n\n\n<li>\u300c\u958b\u95dc\u300d\u529f\u80fd\u5f88\u65b9\u4fbf\uff0c\u5c24\u5176\u662f\u6e2c\u8a66\u8207\u958b\u767c\u8a2d\u8a08\u7528\u9014\u3002 <\/li>\n<\/ul>\n\n<p>\u7f3a\u9ede\uff1a<\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u6309\u5132\u5b58\u6216\u5176\u4ed6\u6b65\u9a5f\u524d\uff0c\u7121\u6cd5\u9810\u89bd\u5373\u6642\u6548\u679c\u3002<\/li>\n<\/ul>\n\n<p>\u4e00\u9ad4\u5169\u9762\uff1a\u81ea\u8a02 CSS \u4e0d\u8ddf\u8457\u4f48\u666f\u4e3b\u984c\uff0c\u662f\u7368\u7acb\u7684\u5b58\u5728\u3002<\/p>\n\n<h3 class=\"wp-block-heading\">(\u5be6\u4f5c\u6642\u9593)<\/h3>\n\n<hr class=\"wp-block-separator has-text-color has-primary-color has-css-opacity has-primary-background-color has-background is-style-dots\"\/>\n\n<h2 class=\"wp-block-heading\">\u65b9\u6cd5\u4e09\u3001<br\/>Blocks CSS \u2013 \u5728\u5340\u584a\u7de8\u8f2f\u5668\u5167\u76f4\u63a5\u81ea\u8a02 CSS<\/h2>\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-plugin-directory wp-block-embed-plugin-directory\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"KWBtsmIlIt\"><a  href=\"https:\/\/tw.wordpress.org\/plugins\/blocks-css\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">Blocks CSS: Gutenberg\/\u5340\u584a\u7de8\u8f2f\u5668\u7684 CSS \u7de8\u8f2f\u5668<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"Blocks CSS: Gutenberg\/\u5340\u584a\u7de8\u8f2f\u5668\u7684 CSS \u7de8\u8f2f\u5668 &#8212; Plugin Directory\" src=\"https:\/\/tw.wordpress.org\/plugins\/blocks-css\/embed\/#?secret=LTn1w5h1AM#?secret=KWBtsmIlIt\" data-secret=\"KWBtsmIlIt\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\"><a  href=\"https:\/\/tw.wordpress.org\/plugins\/blocks-css\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">https:\/\/tw.wordpress.org\/plugins\/blocks-css\/<\/a><\/figcaption><\/figure>\n\n<p>Blocks CSS \u9019\u6b3e\u5916\u639b\uff0c\u662f\u7528\u65bc\u5728\u5340\u584a\u7de8\u8f2f\u5668\u88e1\uff0c\u80fd\u5c0d\u6bcf\u500b\u5340\u584a\u5143\u7d20\u76f4\u63a5\u505a\u81ea\u8a02 CSS<\/p>\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"640\" height=\"369\" src=\"https:\/\/i0.wp.com\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks.gif?resize=640%2C369&#038;ssl=1\" alt=\"Blocks CSS - CSS Editor for Gutenberg Blocks\" class=\"wp-image-25919\" srcset=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks.gif?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Blocks-CSS-CSS-Editor-for-Gutenberg-Blocks.gif?resize=150%2C86&amp;ssl=1 150w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><figcaption class=\"wp-element-caption\">Blocks CSS &#8211; CSS Editor for Gutenberg Blocks<\/figcaption><\/figure>\n\n<p>\u5b83\u4e0d\u53ea\u8b93\u5340\u584a\u5143\u7d20\u80fd\u76f4\u63a5\u6709\u81ea\u8a02 CSS \uff0c\u9084\u6dfb\u52a0\u4e86\u5177\u8a9e\u6cd5\u9192\u76ee\u63d0\u793a\u7684 CSS \u7de8\u8f2f\u5668\uff0c\u4ee5\u4fbf\u65bc\u5ba2\u88fd\u6240\u8981\u7684 CSS \u6a23\u5f0f\u3002<\/p>\n\n<p>\u512a\u9ede\uff1a<\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u63a5\u8fd1\u61f6\u4eba\u7b49\u7d1a\u7684\u7c21\u55ae\u3002<\/li>\n\n\n\n<li>\u7121\u9700\u77e5\u9053\u60f3\u8981\u63a7\u5236\u5176\u6a23\u5f0f\u7684\u5143\u7d20\u540d\u7a31\u3002<\/li>\n\n\n\n<li><code>selector { }<\/code> selector { } \u7e3d\u6703\u81ea\u52d5\u7522\u751f\uff0c\u5f88\u9632\u5446\u3002<\/li>\n<\/ul>\n\n<p>\u7f3a\u9ede\uff1a<\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u7121\u53ef\u7ba1\u7406\u7279\u6027\u3002<\/li>\n\n\n\n<li>\u60a8\u53ef\u80fd\u6703\u5fd8\u8a18\u5728\u54ea\u88e1\u3001\u6709\u54ea\u4e9b\u81ea\u8a02 CSS \u8a9e\u6cd5\u3002<\/li>\n<\/ul>\n\n<p>\u4e00\u9ad4\u5169\u9762\uff1a\u81ea\u8a02 CSS \u4e0d\u8ddf\u8457\u4f48\u666f\u4e3b\u984c\uff0c\u662f\u7368\u7acb\u7684\u5b58\u5728\u3002<\/p>\n\n<hr class=\"wp-block-separator has-text-color has-primary-color has-css-opacity has-primary-background-color has-background is-style-dots\"\/>\n\n<h2 class=\"wp-block-heading\">\u65b9\u6cd5\u56db\u3001<br\/>Elementor Pro \u2013 \u5728\u9801\u9762\u7de8\u8f2f\u5668\u5167\u76f4\u63a5\u81ea\u8a02 CSS<\/h2>\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/be.elementor.com\/visit\/?bta=10204&#038;brand=elementor\" target=\"_blank\" rel=\"noopener noreferrer\" data-auto-blank=\"true\">Elementor Pro<\/a><\/p>\n\n<p>\u82e5\u539f\u672c\u5c31\u4f7f\u7528 Elementor \u201cPro\u201d \u4f5c\u70ba\u9801\u9762\u7de8\u8f2f\u5668\uff0c\u53ef\u76f4\u63a5\u5c0d\u4efb\u4f55\u5340\u584a\u6bb5\u843d\u3001\u6b04\u4f4d\u3001\u5c0f\u5de5\u5177\u3001\u9801\u9762\u7b49\u5143\u7d20\uff0c\u65b0\u589e\u60f3\u8981\u7684\u81ea\u8a02 CSS\u3002 \u201cPro\u201d \uff0c\u4ee3\u8868\u9019\u4e0d\u662f\u4e00\u500b\u514d\u8cbb\u529f\u80fd\u3002 <\/p>\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1024\" height=\"470\" src=\"https:\/\/i0.wp.com\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro.gif?resize=1024%2C470&#038;ssl=1\" alt=\"Elementor Pro &#x2013; &#x5728;&#x9801;&#x9762;&#x7DE8;&#x8F2F;&#x5668;&#x5167;&#x76F4;&#x63A5;&#x81EA;&#x8A02; CSS\" class=\"wp-image-25930\" srcset=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro.gif?w=1024&amp;ssl=1 1024w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Custom-CSS-in-Page-Editor-Elementor-Pro.gif?resize=150%2C69&amp;ssl=1 150w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Elementor Pro \u2013 \u5728\u9801\u9762\u7de8\u8f2f\u5668\u5167\u76f4\u63a5\u81ea\u8a02 CSS<\/figcaption><\/figure>\n\n<p>\u512a\u9ede\uff1a<\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u63a5\u8fd1\u61f6\u4eba\u7b49\u7d1a\u7684\u7c21\u55ae\u3002<\/li>\n\n\n\n<li>\u7121\u9700\u77e5\u9053\u60f3\u8981\u63a7\u5236\u5176\u6a23\u5f0f\u7684\u5143\u7d20\u540d\u7a31\u3002<\/li>\n<\/ul>\n\n<p>\u7f3a\u9ede\uff1a<\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u7121\u53ef\u7ba1\u7406\u7279\u6027\u3002<\/li>\n\n\n\n<li>\u60a8\u53ef\u80fd\u6703\u5fd8\u8a18\u5728\u54ea\u88e1\u3001\u6709\u54ea\u4e9b\u81ea\u8a02 CSS \u8a9e\u6cd5\u3002<\/li>\n\n\n\n<li><code>selector { }<\/code> selector { } \u4e0d\u6703\u81ea\u52d5\u7522\u751f\uff0c\u5728\u6bcf\u4e00\u500b\u81ea\u8a02 CSS \u6b04\u4f4d\u3001\u6bcf\u4e00\u6b21\u7de8\u8f2f\u9700\u8981\u6216\u522a\u9664\u5230\uff0c\u90fd\u5f97\u4e00\u518d\u624b\u52d5\u8f38\u5165\u4e26\u78ba\u8a8d\u5143\u7d20\u6a19\u793a\u5b8c\u6574\u6b63\u78ba\u3002<\/li>\n<\/ul>\n\n<p>\u4e00\u9ad4\u5169\u9762\uff1a\u81ea\u8a02 CSS \u4e0d\u8ddf\u8457\u4f48\u666f\u4e3b\u984c\uff0c\u662f\u7368\u7acb\u7684\u5b58\u5728\u3002<\/p>\n\n<hr class=\"wp-block-separator has-text-color has-primary-color has-css-opacity has-primary-background-color has-background is-style-dots\"\/>\n\n<h2 class=\"wp-block-heading\">\u65b9\u6cd5\u4e94\u3001<br\/>\u4f7f\u7528\u4f48\u666f\u4e3b\u984c\u7684\u81ea\u8a02 CSS \u2013 \u4f48\u666f\u4e3b\u984c\u984d\u5916\u9644\u5e36\u7684\u5f8c\u53f0\u9078\u9805<\/h2>\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1319\" height=\"468\" src=\"https:\/\/i0.wp.com\/facekungfu.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png?resize=1319%2C468&#038;quality=80&#038;ssl=1\" alt=\"&#x7BC4;&#x4F8B; &#x2013; &#x4F7F;&#x7528;&#x4F48;&#x666F;&#x4E3B;&#x984C;&#x7684;&#x81EA;&#x8A02; CSS &#x2013; &#x4F48;&#x666F;&#x4E3B;&#x984C;&#x984D;&#x5916;&#x9644;&#x5E36;&#x7684;&#x5F8C;&#x53F0;&#x9078;&#x9805;\" class=\"wp-image-25922\" srcset=\"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png?w=1319&amp;quality=80&amp;ssl=1 1319w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png?resize=1200%2C426&amp;quality=80&amp;ssl=1 1200w, https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-Custom-CSS-in-Theme-Options-of-Their-Back-end.png?resize=150%2C53&amp;quality=80&amp;ssl=1 150w\" sizes=\"(max-width: 1319px) 100vw, 1319px\" \/><figcaption class=\"wp-element-caption\">\u7bc4\u4f8b \u2013 \u4f7f\u7528\u4f48\u666f\u4e3b\u984c\u7684\u81ea\u8a02 CSS \u2013 \u4f48\u666f\u4e3b\u984c\u984d\u5916\u9644\u5e36\u7684\u5f8c\u53f0\u9078\u9805<\/figcaption><\/figure>\n\n<p>\u6211\u8a8d\u70ba\u5b83\u7684\u4e3b\u8981\u76ee\u7684\uff0c\u4e0d\u662f\u7528\u65bc\u4e00\u822c\u7684\u81ea\u8a02 CSS\u3002<\/p>\n\n<p>\u5b83\u80fd\u5e6b\u52a9\u4f7f\u7528\u8005\u532f\u5165\u5c55\u793a\u7bc4\u672c\uff0c\u4f7f\u4ed6\u5011\u7684\u7db2\u7ad9\u53ef\u4ee5\u770b\u8d77\u4f86\u50cf Demo \u7db2\u7ad9\u4e0a\u7684\u5c55\u793a\u6a21\u6a23\u3002<\/p>\n\n<p>\u6211\u8a8d\u70ba\u9019\u624d\u662f\u5b83\u4e3b\u8981\u7684\u7528\u610f\u3002 <\/p>\n\n<p>\u512a\u9ede\uff1a<\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u53ef\u7ba1\u7406\u3001\u7c21\u55ae\u3002<\/li>\n<\/ul>\n\n<p>\u7f3a\u9ede\uff1a<\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u6309\u5132\u5b58\u6216\u5176\u4ed6\u6b65\u9a5f\u524d\uff0c\u7121\u6cd5\u9810\u89bd\u5373\u6642\u6548\u679c\u3002<\/li>\n\n\n\n<li>\u904e\u65bc\u7c21\u55ae\u5230\uff0c\u53cd\u800c\u5bb9\u6613\u5728 CSS \u8a9e\u6cd5\u7de8\u8f2f\u8207\u9032\u968e\u9700\u6c42\u4e0a\uff0c\u4e0d\u592a\u65b9\u4fbf\u3002<\/li>\n<\/ul>\n\n<p>\u4e00\u9ad4\u5169\u9762: \u6bcf\u5957\u81ea\u8a02 CSS \u90fd\u8ddf\u8457\u5176\u5c0d\u61c9\u7684\u4f48\u666f\u4e3b\u984c\u751f\u6548\u3002<\/p>\n\n<h2 class=\"wp-block-heading\">\u7d50\u8ad6<\/h2>\n\n<p>\u5efa\u8b70\u512a\u5148\u9078\u64c7\u4ee5\u4e0b\u5169\u7a2e\u65b9\u6cd5\uff0c\u60a8\u53ef\u6839\u64da\u81ea\u8eab\u689d\u4ef6\u3001\u9700\u6c42\uff0c\u8207\u81ea\u8eab\u7db2\u7ad9\u7684\u5efa\u7f6e\u8a2d\u8a08\u74b0\u5883\uff0c\u5169\u8005\u64c7\u4e00\u6216\u5169\u8005\u7686\u7528\uff1a<\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u65b9\u6cd5\u4e00\u3001<br\/>\u4f7f\u7528 WordPress \u7684\u81ea\u8a02 CSS \u2013 \u300c\u9644\u52a0\u7684 CSS \u300d<\/li>\n\n\n\n<li>\u65b9\u6cd5\u4e8c\u3001<br\/>Code Snippets (\u6216\u5176\u4ed6\u985e\u4f3c\u7684\u5916\u639b\uff0c\u5305\u62ec\u5c08\u7528\u65bc Header \u8207 Footer \u7684\u5916\u639b)\u3002<\/li>\n<\/ul>\n\n<p>\u5176\u6b21\u53ef\u8996\u7de8\u8f2f\u5668\u800c\u5b9a\uff0c\u5f9e\u4ee5\u4e0b\u5169\u7a2e\u65b9\u6cd5\u4e2d\uff0c\u64c7\u4e00\u6216\u5169\u8005\u7686\u7528\u3002\u5982\u679c\u7121 CSS \u7ba1\u7406\u7684\u9700\u6c42\u8003\u91cf\uff0c\u53ef\u4eab\u53d7\u8df3\u904e\u6aa2\u67e5\u5143\u7d20\u540d\u7a31\u9019\u6b65\u9a5f\u6240\u5e36\u4f86\u7684\u4fbf\u5229\u6027\u3002 <\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u65b9\u6cd5\u4e09\u3001<br\/>Blocks CSS \u2013 \u5728\u5340\u584a\u7de8\u8f2f\u5668\u5167\u76f4\u63a5\u81ea\u8a02 CSS<\/li>\n\n\n\n<li>\u65b9\u6cd5\u56db\u3001<br\/>Elementor Pro \u2013 \u5728\u9801\u9762\u7de8\u8f2f\u5668\u5167\u76f4\u63a5\u81ea\u8a02 CSS<\/li>\n<\/ul>\n\n<p>\u7136\u5f8c\uff0c\u4f60\u5c31\u80fd\u4eab\u53d7\u900f\u904e\u81ea\u8a02 CSS \u4f86\u5ba2\u88fd\u81ea\u5df1\u7db2\u7ad9\u7684\u6210\u5c31\u611f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300c\u5982\u4f55\u5728 WordPress \u81ea\u8a02 CSS\uff1f\u300d\u662f\u5e38\u898b\u7684\u554f\u984c\u4e4b\u4e00\u3002 \u6839\u64da\u5be6\u52d9\u7d93\u9a57\u8207\u5c08\u696d\u8003\u91cf\uff0c\u63d0\u51fa\u4e94\u7a2e\u65b9\u6cd5\uff0c\u5305\u62ec\u6700\u9069\u5408\u60a8\u689d\u4ef6\u8207\u9700\u6c42\u7684\u9078\u9805\u3002<br \/>\n\u7136\u5f8c\uff0c\u4f60\u5c31\u80fd\u4eab\u53d7\u900f\u904e\u81ea\u8a02 CSS \u4f86\u5ba2\u88fd\u81ea\u5df1\u7db2\u7ad9\u7684\u6210\u5c31\u611f\uff01 <\/p>\n","protected":false},"author":1,"featured_media":26092,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"77","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[107,223,111,114],"tags":[125,124,126,161],"class_list":["post-26087","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-zh-hant","category-plugins-themes-zh-hant","category-meetup-zh-hant","category-web-design-zh-hant","tag-css-zh-hant","tag-elementor-zh-hant","tag-gutenberg-zh-hant","tag-block-editor-zh-hant"],"blocksy_meta":[],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ke2b.com\/wp-content\/uploads\/2020\/05\/Example-of-Custom-CSS-in-WordPress-Additional-CSS-Tab.jpg?fit=1920%2C940&quality=89&ssl=1","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ke2b.com\/zh-hant\/wp-json\/wp\/v2\/posts\/26087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ke2b.com\/zh-hant\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ke2b.com\/zh-hant\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ke2b.com\/zh-hant\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ke2b.com\/zh-hant\/wp-json\/wp\/v2\/comments?post=26087"}],"version-history":[{"count":5,"href":"https:\/\/ke2b.com\/zh-hant\/wp-json\/wp\/v2\/posts\/26087\/revisions"}],"predecessor-version":[{"id":34535,"href":"https:\/\/ke2b.com\/zh-hant\/wp-json\/wp\/v2\/posts\/26087\/revisions\/34535"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ke2b.com\/zh-hant\/wp-json\/wp\/v2\/media\/26092"}],"wp:attachment":[{"href":"https:\/\/ke2b.com\/zh-hant\/wp-json\/wp\/v2\/media?parent=26087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ke2b.com\/zh-hant\/wp-json\/wp\/v2\/categories?post=26087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ke2b.com\/zh-hant\/wp-json\/wp\/v2\/tags?post=26087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}