{"id":2476,"date":"2024-11-10T15:44:10","date_gmt":"2024-11-10T07:44:10","guid":{"rendered":"https:\/\/fwq.ai\/blog\/2476\/"},"modified":"2024-11-10T15:44:10","modified_gmt":"2024-11-10T07:44:10","slug":"nuxt-%e7%a7%bb%e5%8a%a8%e7%ab%af%e9%a1%b9%e7%9b%ae%e4%bd%bf%e7%94%a8-rem-%e8%ae%a1%e7%ae%97%e5%ad%97%e4%bd%93%e5%a4%a7%e5%b0%8f%e5%af%bc%e8%87%b4%e9%a1%b5%e9%9d%a2%e5%8f%98%e5%bd%a2%ef%bc%8c%e5%a6%82","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/2476\/","title":{"rendered":"Nuxt \u79fb\u52a8\u7aef\u9879\u76ee\u4f7f\u7528 rem \u8ba1\u7b97\u5b57\u4f53\u5927\u5c0f\u5bfc\u81f4\u9875\u9762\u53d8\u5f62\uff0c\u5982\u4f55\u89e3\u51b3\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173077344365455.jpg\" class=\"aligncenter\" title=\"Nuxt \u79fb\u52a8\u7aef\u9879\u76ee\u4f7f\u7528 rem \u8ba1\u7b97\u5b57\u4f53\u5927\u5c0f\u5bfc\u81f4\u9875\u9762\u53d8\u5f62\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" alt=\"Nuxt \u79fb\u52a8\u7aef\u9879\u76ee\u4f7f\u7528 rem \u8ba1\u7b97\u5b57\u4f53\u5927\u5c0f\u5bfc\u81f4\u9875\u9762\u53d8\u5f62\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>rem \u8ba1\u7b97\u5bfc\u81f4\u79fb\u52a8\u7aef\u9875\u9762\u53d8\u5f62\u7684\u89e3\u51b3\u65b9\u6cd5<\/strong><\/p>\n<p>\u5728 nuxt \u79fb\u52a8\u7aef\u9879\u76ee\u4e2d\u4f7f\u7528 rem \u8ba1\u7b97\u6839\u8282\u70b9\u5b57\u4f53\u5927\u5c0f\u65f6\uff0c\u9875\u9762\u4f1a\u53d1\u751f\u5185\u5bb9\uff0c\u5bfc\u81f4\u9875\u9762\u6253\u5f00\u65f6\u51fa\u73b0\u6837\u5f0f\u53d8\u5f62\u3002\u5982\u4f55\u907f\u514d\u8fd9\u79cd\u73b0\u8c61\uff1f<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6848\uff1a<\/strong><\/p>\n<p>\u79fb\u52a8\u6839\u8282\u70b9\u5b57\u4f53\u5927\u5c0f\u8ba1\u7b97\u4ee3\u7801\u5230\u9875\u9762\u9876\u90e8\uff0c\u5373 head \u4e2d\u3002<\/p>\n<p><strong>\u539f\u7406\uff1a<\/strong><\/p>\n<p>flex\u00edvel.js \u4e5f\u9047\u5230\u4e86\u7c7b\u4f3c\u95ee\u9898\uff0c\u5b83\u7684\u89e3\u51b3\u529e\u6cd5\u662f\u5c06\u8ba1\u7b97\u4ee3\u7801\u5185\u8054\u5230 HTML \u4e2d\u5e76\u5c06\u5176\u653e\u5728\u6240\u6709\u8d44\u6e90\u52a0\u8f7d\u4e4b\u524d\u3002\u8fd9\u6837\u505a\u53ef\u4ee5\u786e\u4fdd\u5728\u9875\u9762\u5185\u5bb9\u6e32\u67d3\u4e4b\u524d\u5e94\u7528 rem \u8ba1\u7b97\uff0c\u4ece\u800c\u907f\u514d\u53d8\u5f62\u3002<\/p>\n<p><strong>\u53c2\u8003\uff1a<\/strong><\/p>\n<ul>\n<li>[amfe\/lib-flexible at master](https:\/\/hub.com\/amfe\/lib-flexible\/blob\/master\/README.md)<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662fNuxt \u79fb\u52a8\u7aef\u9879\u76ee\u4f7f\u7528 rem \u8ba1\u7b97\u5b57\u4f53\u5927\u5c0f\u5bfc\u81f4\u9875\u9762\u53d8\u5f62\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>rem \u8ba1\u7b97\u5bfc\u81f4\u79fb\u52a8\u7aef\u9875\u9762\u53d8\u5f62\u7684\u89e3\u51b3\u65b9\u6cd5 \u5728 nuxt \u79fb\u52a8\u7aef\u9879\u76ee\u4e2d\u4f7f\u7528 rem \u8ba1\u7b97\u6839\u8282\u70b9\u5b57\u4f53\u5927\u5c0f\u65f6\uff0c\u9875\u9762\u4f1a\u53d1\u751f\u5185\u5bb9\uff0c\u5bfc\u81f4\u9875\u9762\u6253\u5f00\u65f6\u51fa\u73b0\u6837\u5f0f\u53d8\u5f62\u3002\u5982\u4f55\u907f\u514d\u8fd9\u79cd\u73b0\u8c61\uff1f \u89e3\u51b3\u65b9\u6848\uff1a \u79fb\u52a8\u6839\u8282\u70b9\u5b57\u4f53\u5927\u5c0f\u8ba1\u7b97\u4ee3\u7801\u5230\u9875\u9762\u9876\u90e8\uff0c\u5373 head \u4e2d\u3002 \u539f\u7406\uff1a flex\u00edvel.js \u4e5f\u9047\u5230\u4e86\u7c7b\u4f3c\u95ee\u9898\uff0c\u5b83\u7684\u89e3\u51b3\u529e\u6cd5\u662f\u5c06\u8ba1\u7b97\u4ee3\u7801\u5185\u8054\u5230 HTML \u4e2d\u5e76\u5c06\u5176\u653e\u5728\u6240\u6709\u8d44\u6e90\u52a0\u8f7d\u4e4b\u524d\u3002\u8fd9\u6837\u505a\u53ef\u4ee5\u786e\u4fdd\u5728\u9875\u9762\u5185\u5bb9\u6e32\u67d3\u4e4b\u524d\u5e94\u7528 rem \u8ba1\u7b97\uff0c\u4ece\u800c\u907f\u514d\u53d8\u5f62\u3002 \u53c2\u8003\uff1a [amfe\/lib-flexible at master](https:\/\/hub.com\/amfe\/lib-flexible\/blob\/master\/README.md) \u4ee5\u4e0a\u5c31\u662fNuxt \u79fb\u52a8\u7aef\u9879\u76ee\u4f7f\u7528 rem \u8ba1\u7b97\u5b57\u4f53\u5927\u5c0f\u5bfc\u81f4\u9875\u9762\u53d8\u5f62\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-2476","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=2476"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2476\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=2476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=2476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=2476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}