{"id":1707,"date":"2013-01-21T14:07:00","date_gmt":"2013-01-21T14:07:00","guid":{"rendered":"http:\/\/wpml.org\/%e5%ae%9a%e5%88%b6%e8%af%ad%e8%a8%80%e5%88%87%e6%8d%a2%e5%99%a8\/"},"modified":"2024-05-22T06:18:55","modified_gmt":"2024-05-22T06:18:55","slug":"%e5%ae%9a%e5%88%b6%e8%af%ad%e8%a8%80%e5%88%87%e6%8d%a2%e5%99%a8","status":"publish","type":"page","link":"https:\/\/wpml.org\/zh-hans\/documentation-4\/%e5%85%a5%e9%97%a8%e6%8c%87%e5%8d%97\/%e8%af%ad%e8%a8%80%e8%ae%be%e7%bd%ae\/%e8%af%ad%e8%a8%80%e5%88%87%e6%8d%a2%e5%99%a8%e9%80%89%e9%a1%b9\/%e5%ae%9a%e5%88%b6%e8%af%ad%e8%a8%80%e5%88%87%e6%8d%a2%e5%99%a8\/","title":{"rendered":"\u81ea\u5b9a\u4e49\u8bed\u8a00\u5207\u6362\u5668"},"content":{"rendered":"\n<p class=\"lead\">\u4f7f\u7528WPML \u5f00\u53d1\u591a\u8bed\u8a00\u7f51\u7ad9\u65f6\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u4e00\u4e2a\u81ea\u5b9a\u4e49\u8bed\u8a00\u5207\u6362\u5668\u3002 \u4e86\u89e3\u5982\u4f55\u4f7f\u7528\u4e00\u4e9b\u7b80\u5355\u7684 PHP \u548c CSS \u6765\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u3002<\/p>\n\n<p>\u901a\u8fc7WPML\uff0c\u60a8\u53ef\u4ee5\u5c06<a href=\"https:\/\/wpml.org\/zh-hans\/documentation-4\/%e5%85%a5%e9%97%a8%e6%8c%87%e5%8d%97\/%e8%af%ad%e8%a8%80%e8%ae%be%e7%bd%ae\/%e8%af%ad%e8%a8%80%e5%88%87%e6%8d%a2%e5%99%a8%e9%80%89%e9%a1%b9\/\">\u8bed\u8a00\u5207\u6362\u5668<\/a>\u6dfb\u52a0\u5230\u83dc\u5355\u3001\u90e8\u4ef6\u3001\u9875\u811a\u4e2d\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u7f51\u7ad9\u7f16\u8f91\u5668\uff08\u4ee5\u524d\u79f0\u4e3a &#8220;\u5168\u7ad9\u7f16\u8f91&#8221;\uff09\u5c06<a href=\"https:\/\/wpml.org\/zh-hans\/documentation-4\/%e5%85%a5%e9%97%a8%e6%8c%87%e5%8d%97\/%e8%af%ad%e8%a8%80%e8%ae%be%e7%bd%ae\/%e8%af%ad%e8%a8%80%e5%88%87%e6%8d%a2%e5%99%a8%e9%80%89%e9%a1%b9\/\">\u8bed\u8a00\u5207\u6362\u5668<\/a>\u6dfb\u52a0\u5230\u7f51\u7ad9\u4e2d\uff0c\u5e76\u63d0\u4f9b\u81ea\u5b9a\u4e49\u9009\u9879\u548c\u5185\u7f6e\u6807\u8bb0\u3002 \u4f46\u60a8\u7684\u7f51\u7ad9\u53ef\u80fd\u9700\u8981\u66f4\u7279\u522b\u7684\u4e1c\u897f\u3002<\/p>\n\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u6f14\u793a\u5982\u4f55\u6dfb\u52a0\u6d6e\u52a8\u8bed\u8a00\u5207\u6362\u5668\u3002 \u6d6e\u52a8\u8bed\u8a00\u5207\u6362\u5668\u770b\u8d77\u6765\u5f88\u68d2\uff0c\u80fd\u8ba9\u5ba2\u6237\u66f4\u65b9\u4fbf\u5730\u7528\u81ea\u5df1\u7684\u8bed\u8a00\u6d4f\u89c8\u7f51\u7ad9\u3002<\/p>\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"e8d3c6ca07234ec9fa3135e60e594db6\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/language-switcher-gif.gif\"><img decoding=\"async\" width=\"768\" height=\"400\" loading=\"lazy\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/language-switcher-gif.gif\" alt=\"\" class=\"wp-image-6779277\"\/><\/a><figcaption><div class=\"tb-image-caption\">\u4f7f\u7528\u6d6e\u52a8\u8bed\u8a00\u5207\u6362\u5668\u7684\u7f51\u7ad9<\/div><\/figcaption><\/figure>\n<\/div>\n<p>\u8bf7\u9075\u5faa\u4ee5\u4e0b\u4e09\u4e2a\u4e3b\u8981\u6b65\u9aa4\uff1a<\/p>\n\n<ol class=\"wp-block-list\">\n<li>\u6dfb\u52a0\u6e32\u67d3\u8bed\u8a00\u5207\u6362\u5668\u7684 PHP \u4ee3\u7801<\/li>\n\n\n\n<li>\u4f7f\u7528 CSS \u4e3a\u8bed\u8a00\u5207\u6362\u5668\u8bbe\u8ba1\u98ce\u683c<\/li>\n\n\n\n<li>\u66f4\u65b0\u8bed\u8a00\u5207\u6362\u5668\u8bbe\u7f6e<\/li>\n<\/ol>\n\n<h2 class=\"wp-block-heading\">PHP \u90e8\u5206<\/h2>\n\n<p>\u7b2c\u4e00\u6b65\u662f\u6dfb\u52a0\u8d1f\u8d23\u5728\u9875\u9762\u4e0a\u5448\u73b0\u8bed\u8a00\u5207\u6362\u5668\u7684 PHP \u4ee3\u7801\u3002 \u4e3a\u6b64\uff0c\u60a8\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u51fd\u6570\uff0c\u5728\u5176\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u5305\u542b\u8bed\u8a00\u5207\u6362\u5668\u7684<strong>div<\/strong>\u5bb9\u5668\u3002 \u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<em> <\/em><strong>wpml_add_language_selector<\/strong>\u64cd\u4f5c\u6765\u663e\u793a\u8bed\u8a00\u5207\u6362\u5668\u3002  <\/p>\n\n<p>\u5728\u672c\u4f8b\u4e2d\uff0c\u6211\u4eec\u5e0c\u671b\u5728\u9875\u811a\u663e\u793a\u65b0\u7684\u8bed\u8a00\u5207\u6362\u5668\uff0c\u56e0\u6b64\u6211\u4eec\u5c06\u65b0\u51fd\u6570\u4e0eWordPress \u81ea\u5df1\u7684<strong>wp_footer<\/strong>\u94a9\u5b50\u7ed3\u5408\u4f7f\u7528\u3002<\/p>\n\n<p>\u5b8c\u6574\u7684 PHP \u4ee3\u7801\u5982\u4e0b\u6240\u793a\u3002  <\/p>\n\n                    <div class='codesnipdiv' id='1601c'>\n                    <a class='language-switcher-PHP' data-titleselector='language-switcher-php' data-randspinner ='1601c' data-sniphost='1707' title='Click to Expand or Minimize' id='codesnipfrontend'><img src='https:\/\/wpml.org\/wp-content\/plugins\/code-snips\/res\/img\/code_icon.png' \/>Language switcher PHP<\/a>\n                    <div id='1601c_innerdiv' class='clearfix'>\n                    <pre class='brush:php;'>\/\/WPML - Add a floating language switcher to the footer\r\n add_action(&#039;wp_footer&#039;, &#039;wpml_floating_language_switcher&#039;); \r\n \r\n function wpml_floating_language_switcher() { \r\n    echo &#039;&lt;div class=&quot;wpml-floating-language-switcher&quot;&gt;&#039;;\r\n        \/\/PHP action to display the language switcher (see https:\/\/wpml.org\/documentation\/getting-started-guide\/language-setup\/language-switcher-options\/#using-php-actions)\r\n        do_action(&#039;wpml_add_language_selector&#039;);\r\n    echo &#039;&lt;\/div&gt;&#039;; \r\n}<\/pre>\n                    <script>\n                    if ('undefined' === typeof cacheObj_open) {\n                        window.cacheObj_open = {};\n                    }\n                    if (typeof SyntaxHighlighter !== 'undefined') SyntaxHighlighter.highlight();\n                    <\/script>\n                    <input type='hidden' id='1601c_minimize' value='Minimize'>\n                    <input type='hidden' id='1601c_cachedstartopen' value='cachedstartopen'>\n                    <\/div>\n                    <\/div>\t\t\t\n                    <script>\t\t\t\t\t\t\t\t \t\t\t\n                    cacheObj_open['1601c_language-switcher-php']='<pre class=\"brush: php;\">\\\/\\\/WPML - Add a floating language switcher to the footer\\r\\n add_action(&#039;wp_footer&#039;, &#039;wpml_floating_language_switcher&#039;); \\r\\n \\r\\n function wpml_floating_language_switcher() { \\r\\n    echo &#039;&lt;div class=&quot;wpml-floating-language-switcher&quot;&gt;&#039;;\\r\\n        \\\/\\\/PHP action to display the language switcher (see https:\\\/\\\/wpml.org\\\/documentation\\\/getting-started-guide\\\/language-setup\\\/language-switcher-options\\\/#using-php-actions)\\r\\n        do_action(&#039;wpml_add_language_selector&#039;);\\r\\n    echo &#039;&lt;\\\/div&gt;&#039;; \\r\\n}<\/pre>';            \n                    <\/script>\n\n<p>\u60a8\u53ef\u4ee5\u590d\u5236\u5e76\u5c06\u5176\u6dfb\u52a0\u5230\uff08\u5b50\uff09\u4e3b\u9898\u7684<strong>functions.php<\/strong>\u6587\u4ef6\u4e2d\u3002<\/p>\n\n<h2 class=\"wp-block-heading\">\u9020\u578b\u90e8\u5206<\/h2>\n\n<p>\u6709\u4e86\u524d\u9762\u7684\u4ee3\u7801\uff0c\u6211\u4eec\u5df2\u7ecf\u5728\u7f51\u7ad9\u9875\u811a\u6dfb\u52a0\u4e86\u4e00\u4e2a\u65b0\u7684\u8bed\u8a00\u5207\u6362\u5668\u3002 \u73b0\u5728\uff0c\u662f\u65f6\u5019\u5bf9\u5176\u8fdb\u884c\u81ea\u5b9a\u4e49\uff0c\u4f7f\u5176\u6d6e\u52a8\u5728\u7f51\u7ad9\u7684\u53f3\u4e0b\u89d2\u3002 \u60a8\u53ef\u4ee5\u4f7f\u7528<strong>position: fixed<\/strong>CSS \u5c5e\u6027\u6765\u505a\u5230\u8fd9\u4e00\u70b9\u3002<\/p>\n\n<p>\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\u6dfb\u52a0 CSS \u4ee3\u7801\uff1a<\/p>\n\n<ol class=\"wp-block-list\">\n<li>\u8f6c\u5230<strong>WPML\u2192 \u8bed\u8a00<\/strong>\u3002<\/li>\n\n\n\n<li>\u5411\u4e0b\u6eda\u52a8\u5230<strong> \u8bed\u8a00\u5207\u6362\u5668\u9009\u9879 <\/strong>\uff0c\u7136\u540e\u5c55\u5f00<strong>\u9644\u52a0 CSS <\/strong>\u90e8\u5206\u3002<\/li>\n<\/ol>\n\n<p>\u6216\u8005\uff0c\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7<strong> \u5916\u89c2 \u2192 \u81ea\u5b9a\u4e49 <\/strong>\u5e76\u5355\u51fb<strong> \u9644\u52a0 CSS<\/strong> \u6765\u6dfb\u52a0\u8fd9\u4e9b<strong> CSS<\/strong> \u4ee3\u7801\u3002<\/p>\n\n<p>\u4e0b\u9762\u7684\u793a\u4f8b\u6dfb\u52a0\u4e86\u4e00\u4e9b\u989d\u5916\u7684\u81ea\u5b9a\u4e49\u529f\u80fd\uff0c\u5982\u5706\u89d2\u8fb9\u6846\u548c\u65b9\u6846\u9634\u5f71\u3002 \u5f53\u7136\uff0c\u60a8\u4e5f\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u8fdb\u884c\u5b9a\u5236\u3002<\/p>\n\n                    <div class='codesnipdiv' id='85ac4'>\n                    <a class='language-switcher-styling' data-titleselector='language-switcher-styling' data-randspinner ='85ac4' data-sniphost='1707' title='Click to Expand or Minimize' id='codesnipfrontend'><img src='https:\/\/wpml.org\/wp-content\/plugins\/code-snips\/res\/img\/code_icon.png' \/>Language Switcher Styling<\/a>\n                    <div id='85ac4_innerdiv' class='clearfix'>\n                    <pre class='brush:css;'>\/*Removing some default CSS from our language switcher*\/\r\n.wpml-floating-language-switcher .wpml-ls-statics-shortcode_actions {\r\n  margin-bottom: 0;\r\n}\r\n \r\n.wpml-floating-language-switcher  .wpml-ls-statics-shortcode_actions a {\r\n  background-color: transparent !important;\r\n}\r\n \r\n.wpml-floating-language-switcher .wpml-ls-legacy-list-horizontal a {\r\n  padding: 5px;\r\n}\r\n \r\n \r\n\/*Customize this if you want*\/\r\n.wpml-floating-language-switcher {\r\n  position: fixed;\r\n  bottom: 10px;\r\n  right: 10px;\r\n  background: #f8f8f8; \/*background color*\/\r\n  border: 1px solid; \/*border settings*\/\r\n  border-color: #eee; \/*color of the border*\/\r\n  padding: 0px; \/*padding of container*\/\r\n  border-radius: 6px; \/*rounded border*\/\r\n  \/*Box Shadow*\/\r\n  -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);\r\n  -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);\r\n  box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);\r\n}<\/pre>\n                    <script>\n                    if ('undefined' === typeof cacheObj_open) {\n                        window.cacheObj_open = {};\n                    }\n                    if (typeof SyntaxHighlighter !== 'undefined') SyntaxHighlighter.highlight();\n                    <\/script>\n                    <input type='hidden' id='85ac4_minimize' value='Minimize'>\n                    <input type='hidden' id='85ac4_cachedstartopen' value='cachedstartopen'>\n                    <\/div>\n                    <\/div>\t\t\t\n                    <script>\t\t\t\t\t\t\t\t \t\t\t\n                    cacheObj_open['85ac4_language-switcher-styling']='<pre class=\"brush: css;\">\\\/*Removing some default CSS from our language switcher*\\\/\\r\\n.wpml-floating-language-switcher .wpml-ls-statics-shortcode_actions {\\r\\n  margin-bottom: 0;\\r\\n}\\r\\n \\r\\n.wpml-floating-language-switcher  .wpml-ls-statics-shortcode_actions a {\\r\\n  background-color: transparent !important;\\r\\n}\\r\\n \\r\\n.wpml-floating-language-switcher .wpml-ls-legacy-list-horizontal a {\\r\\n  padding: 5px;\\r\\n}\\r\\n \\r\\n \\r\\n\\\/*Customize this if you want*\\\/\\r\\n.wpml-floating-language-switcher {\\r\\n  position: fixed;\\r\\n  bottom: 10px;\\r\\n  right: 10px;\\r\\n  background: #f8f8f8; \\\/*background color*\\\/\\r\\n  border: 1px solid; \\\/*border settings*\\\/\\r\\n  border-color: #eee; \\\/*color of the border*\\\/\\r\\n  padding: 0px; \\\/*padding of container*\\\/\\r\\n  border-radius: 6px; \\\/*rounded border*\\\/\\r\\n  \\\/*Box Shadow*\\\/\\r\\n  -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);\\r\\n  -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);\\r\\n  box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);\\r\\n}<\/pre>';            \n                    <\/script>\n\n<h2 class=\"wp-block-heading\">\u8bbe\u7f6e\u90e8\u5206<\/h2>\n\n<p>\u6700\u540e\uff0c\u60a8\u9700\u8981\u8c03\u6574\u4e00\u4e9b\u8bbe\u7f6e\uff0c\u4ee5\u4fbf\u8bed\u8a00\u5207\u6362\u5668\u53ea\u663e\u793a\u56fd\u65d7\u3002<\/p>\n\n<p>\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n\n<ol class=\"wp-block-list\">\n<li>\u8f6c\u5230<strong>WPML\u2192 \u8bed\u8a00<\/strong>\u3002<\/li>\n\n\n\n<li>\u5411\u4e0b\u6eda\u52a8\u5230<strong>\u81ea\u5b9a\u4e49\u8bed\u8a00\u5207\u6362\u5668<\/strong>\uff0c\u7136\u540e\u5355\u51fb<strong>\u542f\u7528<\/strong>\u3002<\/li>\n\n\n\n<li>\u5355\u51fb &#8220;<strong>\u81ea\u5b9a\u4e49<\/strong>&#8220;\u6309\u94ae\u3002<\/li>\n\n\n\n<li>\u5bf9\u4e8e &#8220;<strong>\u8bed\u8a00\u5207\u6362\u5668\u4e2d\u5305\u62ec\u54ea\u4e9b\u5185\u5bb9<\/strong>&#8220;\uff0c\u8bf7\u9009\u62e9 &#8220;<strong>\u65d7\u5e1c<\/strong>&#8220;\u5e76\u53d6\u6d88\u9009\u4e2d\u5176\u4ed6\u9009\u9879\u3002<\/li>\n\n\n\n<li>\u5355\u51fb<strong>\u4fdd\u5b58<\/strong>\u3002<\/li>\n<\/ol>\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"f9bdd36b2fe8b9672acc349bff2be10f\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/language-switcher-options-1.png\"><img decoding=\"async\" width=\"1024\" height=\"527\" loading=\"lazy\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/language-switcher-options-1-1024x527.png\" alt=\"Language switcher options\" class=\"wp-image-6779481\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/language-switcher-options-1-1024x527.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/language-switcher-options-1-300x154.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/language-switcher-options-1-150x77.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/language-switcher-options-1-768x395.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/language-switcher-options-1.png 1504w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption><div class=\"tb-image-caption\">\u5728\u6d6e\u52a8\u8bed\u8a00\u5207\u6362\u5668\u4e2d\u53ea\u663e\u793a\u56fd\u65d7<\/div><\/figcaption><\/figure>\n<\/div>\n<p>\u5c31\u662f\u8fd9\u6837\uff01 \u73b0\u5728\u7f51\u7ad9\u4e0a\u5e94\u8be5\u6709\u4e00\u4e2a\u6f02\u4eae\u7684\u81ea\u5b9a\u4e49\u8bed\u8a00\u5207\u6362\u5668\u4e86\uff1a<\/p>\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"354de0be796fda96feaeae7b6e1f3e13\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/horizontal-language-switcher.png\"><img decoding=\"async\" width=\"1024\" height=\"626\" loading=\"lazy\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/horizontal-language-switcher-1024x626.png\" alt=\"Horizontal language switcher\" class=\"wp-image-6779507\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/horizontal-language-switcher-1024x626.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/horizontal-language-switcher-300x183.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/horizontal-language-switcher-150x92.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/horizontal-language-switcher-768x469.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/horizontal-language-switcher.png 1504w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption><div class=\"tb-image-caption\">\u524d\u7aef\u7684\u8bed\u8a00\u5207\u6362\u5668<\/div><\/figcaption><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\">\u5956\u52b1\uff1a\u5782\u76f4\u6d6e\u52a8\u8bed\u8a00\u5207\u6362\u5668<\/h2>\n\n<p>\u4f60\u4e5f\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u5782\u76f4\u8bed\u8a00\u5207\u6362\u5668\uff0c\u5c31\u50cf\u4e0b\u9762\u7684\u622a\u56fe\u4e00\u6837\uff1a<\/p>\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"9406b1ca7ecb5dd9b2c55d1bd64d7156\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/vertical-language-switcher.png\"><img decoding=\"async\" width=\"1024\" height=\"626\" loading=\"lazy\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/vertical-language-switcher-1024x626.png\" alt=\"Vertical language switcher\" class=\"wp-image-6779529\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/vertical-language-switcher-1024x626.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/vertical-language-switcher-300x183.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/vertical-language-switcher-150x92.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/vertical-language-switcher-768x469.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2020\/08\/vertical-language-switcher.png 1504w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption><div class=\"tb-image-caption\">\u5782\u76f4\u8bed\u8a00\u5207\u6362\u5668<\/div><\/figcaption><\/figure>\n<\/div>\n<p>\u4e3a\u6b64\uff0c\u53ea\u9700\u7528\u4ee5\u4e0b\u4ee3\u7801\u66ff\u6362\u4e4b\u524d\u7684 CSS \u4ee3\u7801\u5373\u53ef\uff1a<\/p>\n\n                    <div class='codesnipdiv' id='84692'>\n                    <a class='vertical-language-switcher' data-titleselector='vertical-language-switcher-css' data-randspinner ='84692' data-sniphost='1707' title='Click to Expand or Minimize' id='codesnipfrontend'><img src='https:\/\/wpml.org\/wp-content\/plugins\/code-snips\/res\/img\/code_icon.png' \/>Vertical Language Switcher CSS<\/a>\n                    <div id='84692_innerdiv' class='clearfix'>\n                    <pre class='brush:css;'>\/*Removing some default CSS our language switcher*\/\r\n.wpml-floating-language-switcher .wpml-ls-statics-shortcode_actions {\r\n  margin-bottom: 0;\r\n}\r\n \r\n.wpml-floating-language-switcher  .wpml-ls-statics-shortcode_actions a {\r\n  background-color: transparent !important;\r\n}\r\n \r\n.wpml-floating-language-switcher .wpml-ls-legacy-list-horizontal a {\r\n  padding: 5px;\r\n}\r\n \r\n.wpml-floating-language-switcher .wpml-ls-item {\r\n  display: block;\r\n}\r\n \r\n\/*Customize this if you want*\/\r\n.wpml-floating-language-switcher {\r\n  position: fixed;\r\n  bottom: 20px;\r\n  right: 0px;\r\n  background: #f8f8f8; \/*background color*\/\r\n  border: 1px solid; \/*border settings*\/\r\n  border-color: #eee; \/*color of the border*\/\r\n  padding: 0px; \/*padding of container*\/\r\n  border-radius: 6px 0 0 6px; \/*rounded border*\/\r\n  \/*Box Shadow*\/\r\n  -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);\r\n  -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);\r\n  box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);\r\n  z-index: 999;\r\n}<\/pre>\n                    <script>\n                    if ('undefined' === typeof cacheObj_open) {\n                        window.cacheObj_open = {};\n                    }\n                    if (typeof SyntaxHighlighter !== 'undefined') SyntaxHighlighter.highlight();\n                    <\/script>\n                    <input type='hidden' id='84692_minimize' value='Minimize'>\n                    <input type='hidden' id='84692_cachedstartopen' value='cachedstartopen'>\n                    <\/div>\n                    <\/div>\t\t\t\n                    <script>\t\t\t\t\t\t\t\t \t\t\t\n                    cacheObj_open['84692_vertical-language-switcher-css']='<pre class=\"brush: css;\">\\\/*Removing some default CSS our language switcher*\\\/\\r\\n.wpml-floating-language-switcher .wpml-ls-statics-shortcode_actions {\\r\\n  margin-bottom: 0;\\r\\n}\\r\\n \\r\\n.wpml-floating-language-switcher  .wpml-ls-statics-shortcode_actions a {\\r\\n  background-color: transparent !important;\\r\\n}\\r\\n \\r\\n.wpml-floating-language-switcher .wpml-ls-legacy-list-horizontal a {\\r\\n  padding: 5px;\\r\\n}\\r\\n \\r\\n.wpml-floating-language-switcher .wpml-ls-item {\\r\\n  display: block;\\r\\n}\\r\\n \\r\\n\\\/*Customize this if you want*\\\/\\r\\n.wpml-floating-language-switcher {\\r\\n  position: fixed;\\r\\n  bottom: 20px;\\r\\n  right: 0px;\\r\\n  background: #f8f8f8; \\\/*background color*\\\/\\r\\n  border: 1px solid; \\\/*border settings*\\\/\\r\\n  border-color: #eee; \\\/*color of the border*\\\/\\r\\n  padding: 0px; \\\/*padding of container*\\\/\\r\\n  border-radius: 6px 0 0 6px; \\\/*rounded border*\\\/\\r\\n  \\\/*Box Shadow*\\\/\\r\\n  -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);\\r\\n  -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);\\r\\n  box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);\\r\\n  z-index: 999;\\r\\n}<\/pre>';            \n                    <\/script>\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528WPML \u5f00\u53d1\u591a\u8bed\u8a00\u7f51\u7ad9\u65f6\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u4e00\u4e2a\u81ea\u5b9a\u4e49\u8bed\u8a00\u5207\u6362\u5668\u3002 \u4e86\u89e3\u5982\u4f55\u4f7f\u7528\u4e00\u4e9b\u7b80\u5355\u7684 PHP \u548c CSS  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3749673,"menu_order":11,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_uag_custom_page_level_css":"","ep_exclude_from_search":false,"footnotes":""},"related-projects-category":[],"class_list":["post-1707","page","type-page","status-publish","hentry"],"spectra_custom_meta":{"_icl_translation":["1"],"_wp_page_template":["default"],"ratings_users":["0"],"ratings_score":["0"],"ratings_average":["0"],"_views_template":["0"],"_alp_processed":["1716358735"],"_wpml_media_featured":["1"],"_subscription_coupon_product_id":["0"],"inline_featured_image":["0"],"_last_translation_edit_mode":["translation-editor"],"wpcf-unformatted-code":[""],"_syntaxhighlighter_encoded":["1"],"toolset_post_editor_mode":["block"],"wpcf-price-increase-show-from":[""],"wpcf-price-increase-show-till":[""],"_wpml_media_duplicate":["0"],"_headspace_description":["\u4e3aWPML\u7f51\u7ad9\u7f16\u5199\u81ea\u5b9a\u4e49\u8bed\u8a00\u5207\u6362\u5668\u7684\u8bf4\u660e\u3002"],"_yoast_wpseo_title":["\u81ea\u5b9a\u4e49\u8bed\u8a00\u5207\u6362\u5668 -WPML"],"_yoast_wpseo_metadesc":["\u5b66\u4e60\u5982\u4f55\u521b\u5efa\u81ea\u5b9a\u4e49\u8bed\u8a00\u5207\u6362\u5668\uff0c\u4f8b\u5982\u4f7f\u7528\u4e00\u4e9b\u7b80\u5355\u7684 PHP \u548c CSS \u521b\u5efa\u6d6e\u52a8\u8bed\u8a00\u5207\u6362\u5668\u3002"],"_uag_css_file_name":["uag-css-1707.css"],"_uag_page_assets":["a:9:{s:3:\"css\";s:260:\".uag-blocks-common-selector{z-index:var(--z-index-desktop) !important}@media(max-width: 976px){.uag-blocks-common-selector{z-index:var(--z-index-tablet) !important}}@media(max-width: 767px){.uag-blocks-common-selector{z-index:var(--z-index-mobile) !important}}\";s:2:\"js\";s:0:\"\";s:18:\"current_block_list\";a:6:{i:0;s:14:\"core\/paragraph\";i:1;s:20:\"toolset-blocks\/image\";i:2;s:9:\"core\/list\";i:3;s:14:\"core\/list-item\";i:4;s:12:\"core\/heading\";i:5;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:0;s:11:\"uag_version\";s:10:\"1778283058\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"gform-image-choice-sm":false,"gform-image-choice-md":false,"gform-image-choice-lg":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false},"uagb_author_info":{"display_name":"Amir","author_link":"https:\/\/wpml.org\/zh-hans\/author\/admingm\/"},"uagb_comment_info":0,"uagb_excerpt":"\u4f7f\u7528WPML \u5f00\u53d1\u591a\u8bed\u8a00\u7f51\u7ad9\u65f6\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u4e00\u4e2a\u81ea\u5b9a\u4e49\u8bed\u8a00\u5207\u6362\u5668\u3002 \u4e86\u89e3\u5982\u4f55\u4f7f\u7528\u4e00\u4e9b\u7b80\u5355\u7684 PHP \u548c CSS ...","_links":{"self":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/pages\/1707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/comments?post=1707"}],"version-history":[{"count":8,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/pages\/1707\/revisions"}],"predecessor-version":[{"id":15653386,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/pages\/1707\/revisions\/15653386"}],"up":[{"embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/pages\/3749673"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/media?parent=1707"}],"wp:term":[{"taxonomy":"related-projects-category","embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/related-projects-category?post=1707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}