{"id":1661,"date":"2019-05-31T15:18:58","date_gmt":"2019-05-31T07:18:58","guid":{"rendered":"https:\/\/blog.naibabiji.com\/?p=1661"},"modified":"2019-11-01T12:08:04","modified_gmt":"2019-11-01T04:08:04","slug":"jin-zhi-xiang-ying-shi","status":"publish","type":"post","link":"https:\/\/blog.naibabiji.com\/skill\/jin-zhi-xiang-ying-shi.html","title":{"rendered":"\u600e\u4e48\u7981\u7528WordPress\u4e3b\u9898\u7684\u54cd\u5e94\u5f0f\u529f\u80fd"},"content":{"rendered":"<p>\u6700\u8fd1\u51e0\u5e74\u5e94\u4e3a\u4e0a\u7f51\u8bbe\u5907\u7684\u591a\u6837\u5316\uff0c\u6240\u4ee5\u666e\u904d\u7684<a title=\"\u67e5\u770b\u66f4\u591a\u201cWordPress\u4e3b\u9898\u201d\u7684\u6587\u7ae0\" href=\"https:\/\/blog.naibabiji.com\/files\/wordpress-themes\">WordPress\u4e3b\u9898<\/a>\u7684\u91c7\u7528\u4e86\u54cd\u5e94\u5f0f\u5e03\u5c40\u8bbe\u8ba1\uff08responsive layout\uff09\uff0c\u4f46\u662f\u603b\u6709\u4e00\u4e9b\u7279\u6b8a\u7684\u7f51\u7ad9\u9700\u6c42\uff0c\u4e0d\u60f3\u8981\u54cd\u5e94\u5f0f\u5e03\u5c40\uff0c\u672c\u6587\u5c31\u4ecb\u7ecd\u4e0b\u5e38\u89c4\u7684\u7981\u7528\u54cd\u5e94\u5f0f\u5e03\u5c40\u7684\u65b9\u6cd5\u3002<\/p>\n<blockquote><p>\u4fee\u6539\u4e3b\u9898\u6587\u4ef6\u524d\u8bb0\u5f97\u5148\u5907\u4efd\uff0c\u51fa\u9519\u518d\u66ff\u6362\u56de\u6765\u3002<\/p><\/blockquote>\n<h2>\u7981\u7528WordPress\u4e3b\u9898\u54cd\u5e94\u5f0f\u5e03\u5c40\u7684\u65b9\u6cd5<\/h2>\n<p>\u9996\u5148\uff0c\u5728WP\u540e\u53f0\uff0c\u70b9\u51fb\u5916\u89c2-\u7f16\u8f91\uff08Theme Editor\uff09\uff0c\u7136\u540e\u5728\u53f3\u8fb9\u7f16\u8f91\u6587\u4ef6\u5904\u9009\u62e9\u4e3b\u9898\u9875\u7709\uff08header.php\uff09<\/p>\n<p>\u627e\u5230\u4e0b\u9762\u8fd9\u4e00\u4e32\u4ee3\u7801\uff0c\u5e76\u4e14\u5220\u9664\u3002<\/p>\n<pre>&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \/&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1662\" src=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2019\/05\/1559190279-device-width.png\" alt=\"device-width\" width=\"585\" height=\"189\" \/><\/p>\n<p>\u7136\u540e\u4fee\u6539\u6837\u5f0f\u8868\uff08style.css\uff09\u6587\u4ef6\uff0c\u627e\u5230\u4e0b\u9762\u6f14\u793a\u7684\u8fd9\u7c7b\u578b\u7684\u4ee3\u7801\uff08@media screen and\uff09\uff0c\u5168\u90e8\u5220\u9664\u3002<\/p>\n<pre>@media screen and (max-width: 1210px)<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1663\" src=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2019\/05\/1559190492-media-screen.png\" alt=\"media screen\" width=\"484\" height=\"582\" \/><\/p>\n<p>\u66f4\u65b0\u6587\u4ef6\u540e\u524d\u53f0\u67e5\u770b\u6548\u679c\u5e94\u8be5\u5c31\u6ca1\u6709\u54cd\u5e94\u5f0f\u5e03\u5c40\u4e86\u3002<\/p>\n<p>\u63d0\u9192\u7684\u662f\uff0c\u4e0d\u540c\u7684\u4e3b\u9898\u4fee\u6539css\u4ee3\u7801\u7684\u6587\u4ef6\u53ef\u80fd\u4e0d\u4e00\u6837\uff0c\u9700\u8981\u5177\u4f53\u4e3b\u9898\u5177\u4f53\u5206\u6790\u3002<\/p>\n<p>\u66f4\u591a\u54cd\u5e94\u5f0f\u5e03\u5c40\u7684\u5185\u5bb9\u53ef\u4ee5\u53c2\u8003\uff1a<a href=\"https:\/\/baike.baidu.com\/item\/%E5%93%8D%E5%BA%94%E5%BC%8F%E5%B8%83%E5%B1%80?fr=aladdin\" target=\"_blank\" rel=\"noopener noreferrer\">\u767e\u5ea6\u767e\u79d1<\/a><\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;1661&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;2&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;\u7ed9\u672c\u6587\u6253\u5206 post&quot;,&quot;legend&quot;:&quot;5\\\/5 - (2 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u600e\u4e48\u7981\u7528WordPress\u4e3b\u9898\u7684\u54cd\u5e94\u5f0f\u529f\u80fd&quot;,&quot;width&quot;:&quot;138&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 138px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            5\/5 - (2 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u51e0\u5e74\u5e94\u4e3a\u4e0a\u7f51\u8bbe\u5907\u7684\u591a\u6837\u5316\uff0c\u6240\u4ee5\u666e\u904d\u7684WordPress\u4e3b\u9898\u7684\u91c7\u7528\u4e86\u54cd\u5e94\u5f0f\u5e03\u5c40\u8bbe\u8ba1\uff08responsive l [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1664,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"\u600e\u4e48\u7981\u7528WordPress\u4e3b\u9898\u7684\u54cd\u5e94\u5f0f\u529f\u80fd - \u5976\u7238\u5efa\u7ad9\u7b14\u8bb0","description":"\u6700\u8fd1\u51e0\u5e74\u5e94\u4e3a\u4e0a\u7f51\u8bbe\u5907\u7684\u591a\u6837\u5316\uff0c\u6240\u4ee5\u666e\u904d\u7684 WordPress\u4e3b\u9898 \u7684\u91c7\u7528\u4e86\u54cd\u5e94\u5f0f\u5e03\u5c40\u8bbe\u8ba1\uff08responsive layout\uff09\uff0c\u4f46\u662f\u603b\u6709\u4e00\u4e9b\u7279\u6b8a\u7684\u7f51\u7ad9\u9700\u6c42\uff0c\u4e0d\u60f3\u8981\u54cd\u5e94\u5f0f\u5e03\u5c40\uff0c\u672c\u6587\u5c31\u4ecb\u7ecd\u4e0b\u5e38\u89c4\u7684\u7981\u7528\u54cd\u5e94\u5f0f\u5e03\u5c40\u7684\u65b9\u6cd5\u3002 \u4fee\u6539\u4e3b\u9898\u6587\u4ef6\u524d\u8bb0\u5f97\u5148\u5907\u4efd\uff0c\u51fa\u9519\u518d\u66ff\u6362\u56de\u6765\u3002 \u7981\u7528WordPress\u4e3b\u9898\u54cd\u5e94\u5f0f\u5e03\u5c40\u7684\u65b9\u6cd5 \u9996\u5148\uff0c\u5728WP\u540e\u53f0"},"footnotes":""},"categories":[142],"tags":[],"class_list":["post-1661","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/1661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/comments?post=1661"}],"version-history":[{"count":0,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/1661\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media\/1664"}],"wp:attachment":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media?parent=1661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/categories?post=1661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/tags?post=1661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}