{"id":52763,"date":"2024-12-03T13:46:12","date_gmt":"2024-12-03T05:46:12","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52763\/"},"modified":"2024-12-03T13:46:12","modified_gmt":"2024-12-03T05:46:12","slug":"%e7%a7%bb%e5%8a%a8%e7%ab%af-rem-%e8%ae%a1%e7%ae%97%e5%a6%82%e4%bd%95%e9%81%bf%e5%85%8d-css-%e5%8f%98%e5%bd%a2%ef%bc%9f-3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52763\/","title":{"rendered":"\u79fb\u52a8\u7aef rem \u8ba1\u7b97\u5982\u4f55\u907f\u514d CSS \u53d8\u5f62\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u79fb\u52a8\u7aef rem \u8ba1\u7b97\u5982\u4f55\u907f\u514d CSS \u53d8\u5f62\uff1f <\/h1>\n<p>\u4f60\u5728\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\u76f8\u5173\u7684\u77e5\u8bc6\u5417\uff1f\u672c\u6587<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300a\u79fb\u52a8\u7aef rem \u8ba1\u7b97\u5982\u4f55\u907f\u514d CSS \u53d8\u5f62\uff1f \u300b<\/span>\uff0c\u4e3b\u8981\u4ecb\u7ecd\u7684\u5185\u5bb9\u5c31\u6d89\u53ca\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\uff0c\u5982\u679c\u4f60\u60f3\u63d0\u5347\u81ea\u5df1\u7684\u5f00\u53d1\u80fd\u529b\uff0c\u5c31\u4e0d\u8981\u9519\u8fc7\u8fd9\u7bc7\u6587\u7ae0\uff0c\u5927\u5bb6\u8981\u77e5\u9053\u7f16\u7a0b\u7406\u8bba\u57fa\u7840\u548c\u5b9e\u6218\u64cd\u4f5c\u90fd\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u54e6\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241123\/173233303167414de78946f.jpg\" class=\"aligncenter\" title=\"\u79fb\u52a8\u7aef rem \u8ba1\u7b97\u5982\u4f55\u907f\u514d CSS \u53d8\u5f62\uff1f\u63d2\u56fe\" alt=\"\u79fb\u52a8\u7aef rem \u8ba1\u7b97\u5982\u4f55\u907f\u514d CSS \u53d8\u5f62\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u907f\u514d\u79fb\u52a8\u7aef rem \u8ba1\u7b97\u5bfc\u81f4 CSS \u53d8\u5f62\uff1f<\/strong><\/p>\n<p>\u5728\u79fb\u52a8\u7aef\u9879\u76ee\u4e2d\uff0c\u4f7f\u7528 rem \u8ba1\u7b97\u6839\u8282\u70b9\u5b57\u4f53\u5927\u5c0f\u6709\u52a9\u4e8e\u6839\u636e\u8bbe\u5907\u5c4f\u5e55\u5927\u5c0f\u8fdb\u884c\u52a8\u6001\u8c03\u6574\u3002\u7136\u800c\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5e26\u6765\u4e00\u4e2a\u95ee\u9898\uff1a\u9875\u9762\u5728\u9996\u6b21\u52a0\u8f7d\u65f6\uff0c\u5185\u5bb9\u5df2\u663e\u793a\uff0c\u968f\u540e\u6839\u8282\u70b9\u5b57\u4f53\u5927\u5c0f\u8bbe\u7f6e\u5b8c\u6210\uff0c\u5bfc\u81f4\u9875\u9762\u5185\u5bb9\u91cd\u7ed8\uff0c\u51fa\u73b0 CSS \u626d\u66f2\u53d8\u52a8\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6848\uff1a<\/strong><\/p>\n<p>\u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u5c06\u8ba1\u7b97\u6839\u8282\u70b9\u5b57\u4f53\u5927\u5c0f\u7684 JS \u4ee3\u7801\u79fb\u52a8\u5230\u9875\u9762\u7684\u6700\u524d\u9762\uff0c\u5373 head \u90e8\u5206\u3002\u8fd9\u6837\uff0c\u8be5\u4ee3\u7801\u5c06\u5728\u6240\u6709\u5176\u4ed6\u8d44\u6e90\u52a0\u8f7d\u4e4b\u524d\u6267\u884c\uff0c\u786e\u4fdd\u9875\u9762\u5185\u5bb9\u5728\u5b57\u4f53\u5927\u5c0f\u8bbe\u7f6e\u5b8c\u6210\u540e\u624d\u663e\u793a\u3002<\/p>\n<p><strong>\u53c2\u8003\uff1a<\/strong><\/p>\n<p>flexible.js \u662f\u4e00\u4e2a\u5b9e\u73b0\u8fd9\u4e00\u89e3\u51b3\u65b9\u6848\u7684\u5e38\u7528\u5e93\u3002\u5176\u6587\u6863\u4e2d\u660e\u786e\u6307\u51fa\uff1a<\/p>\n<ol>\n<li>\u5c06\u8fd9\u6bb5 JS \u4ee3\u7801\u5185\u8054\u5230\u9875\u9762\u4e2d\u3002<\/li>\n<li>\u5c06\u5176\u653e\u7f6e\u5728\u6240\u6709\u8d44\u6e90\u52a0\u8f7d\u4e4b\u524d\u3002<\/li>\n<\/ol>\n<p>\u901a\u8fc7\u9075\u5faa\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u60a8\u53ef\u4ee5\u5728\u79fb\u52a8\u7aef\u9879\u76ee\u4e2d\u4f7f\u7528 rem \u8ba1\u7b97\u6839\u8282\u70b9\u5b57\u4f53\u5927\u5c0f\uff0c\u800c\u4e0d\u4f1a\u5f71\u54cd CSS \u6837\u5f0f\u7684\u53d8\u5f62\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u672c\u6587\u7684\u5168\u90e8\u5185\u5bb9\u4e86\uff0c\u662f\u5426\u6709\u987a\u5229\u5e2e\u52a9\u4f60\u89e3\u51b3\u95ee\u9898\uff1f\u82e5\u662f\u80fd\u7ed9\u4f60\u5e26\u6765\u5b66\u4e60\u4e0a\u7684\u5e2e\u52a9\uff0c\u8bf7\u5927\u5bb6\u591a\u591a\u652f\u6301\u7c73\u4e91\uff01\u66f4\u591a\u5173\u4e8e\u6587\u7ae0\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u4e5f\u53ef\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\u3002<\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   \u7f51\u9875\u6eda\u52a8\u6761\u6324\u538b\u5185\u5bb9\u533a\u57df\u600e\u4e48\u529e\uff1f\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u79fb\u52a8\u7aef rem \u8ba1\u7b97\u5982\u4f55\u907f\u514d CSS \u53d8\u5f62\uff1f \u4f60\u5728\u5b66\u4e60\u6587\u7ae0\u76f8\u5173\u7684\u77e5\u8bc6\u5417\uff1f\u672c\u6587\u300a\u79fb\u52a8\u7aef rem \u8ba1\u7b97\u5982\u4f55\u907f\u514d CSS \u53d8\u5f62\uff1f \u300b\uff0c\u4e3b\u8981\u4ecb\u7ecd\u7684\u5185\u5bb9\u5c31\u6d89\u53ca\u5230\uff0c\u5982\u679c\u4f60\u60f3\u63d0\u5347\u81ea\u5df1\u7684\u5f00\u53d1\u80fd\u529b\uff0c\u5c31\u4e0d\u8981\u9519\u8fc7\u8fd9\u7bc7\u6587\u7ae0\uff0c\u5927\u5bb6\u8981\u77e5\u9053\u7f16\u7a0b\u7406\u8bba\u57fa\u7840\u548c\u5b9e\u6218\u64cd\u4f5c\u90fd\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u54e6\uff01 \u5982\u4f55\u907f\u514d\u79fb\u52a8\u7aef rem \u8ba1\u7b97\u5bfc\u81f4 CSS \u53d8\u5f62\uff1f \u5728\u79fb\u52a8\u7aef\u9879\u76ee\u4e2d\uff0c\u4f7f\u7528 rem \u8ba1\u7b97\u6839\u8282\u70b9\u5b57\u4f53\u5927\u5c0f\u6709\u52a9\u4e8e\u6839\u636e\u8bbe\u5907\u5c4f\u5e55\u5927\u5c0f\u8fdb\u884c\u52a8\u6001\u8c03\u6574\u3002\u7136\u800c\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5e26\u6765\u4e00\u4e2a\u95ee\u9898\uff1a\u9875\u9762\u5728\u9996\u6b21\u52a0\u8f7d\u65f6\uff0c\u5185\u5bb9\u5df2\u663e\u793a\uff0c\u968f\u540e\u6839\u8282\u70b9\u5b57\u4f53\u5927\u5c0f\u8bbe\u7f6e\u5b8c\u6210\uff0c\u5bfc\u81f4\u9875\u9762\u5185\u5bb9\u91cd\u7ed8\uff0c\u51fa\u73b0 CSS \u626d\u66f2\u53d8\u52a8\u3002 \u89e3\u51b3\u65b9\u6848\uff1a \u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u5c06\u8ba1\u7b97\u6839\u8282\u70b9\u5b57\u4f53\u5927\u5c0f\u7684 JS \u4ee3\u7801\u79fb\u52a8\u5230\u9875\u9762\u7684\u6700\u524d\u9762\uff0c\u5373 head \u90e8\u5206\u3002\u8fd9\u6837\uff0c\u8be5\u4ee3\u7801\u5c06\u5728\u6240\u6709\u5176\u4ed6\u8d44\u6e90\u52a0\u8f7d\u4e4b\u524d\u6267\u884c\uff0c\u786e\u4fdd\u9875\u9762\u5185\u5bb9\u5728\u5b57\u4f53\u5927\u5c0f\u8bbe\u7f6e\u5b8c\u6210\u540e\u624d\u663e\u793a\u3002 \u53c2\u8003\uff1a flexible.js \u662f\u4e00\u4e2a\u5b9e\u73b0\u8fd9\u4e00\u89e3\u51b3\u65b9\u6848\u7684\u5e38\u7528\u5e93\u3002\u5176\u6587\u6863\u4e2d\u660e\u786e\u6307\u51fa\uff1a \u5c06\u8fd9\u6bb5 JS \u4ee3\u7801\u5185\u8054\u5230\u9875\u9762\u4e2d\u3002 \u5c06\u5176\u653e\u7f6e\u5728\u6240\u6709\u8d44\u6e90\u52a0\u8f7d\u4e4b\u524d\u3002 \u901a\u8fc7\u9075\u5faa\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u60a8\u53ef\u4ee5\u5728\u79fb\u52a8\u7aef\u9879\u76ee\u4e2d\u4f7f\u7528 rem \u8ba1\u7b97\u6839\u8282\u70b9\u5b57\u4f53\u5927\u5c0f\uff0c\u800c\u4e0d\u4f1a\u5f71\u54cd CSS \u6837\u5f0f\u7684\u53d8\u5f62\u3002 \u4ee5\u4e0a\u5c31\u662f\u672c\u6587\u7684\u5168\u90e8\u5185\u5bb9\u4e86\uff0c\u662f\u5426\u6709\u987a\u5229\u5e2e\u52a9\u4f60\u89e3\u51b3\u95ee\u9898\uff1f\u82e5\u662f\u80fd\u7ed9\u4f60\u5e26\u6765\u5b66\u4e60\u4e0a\u7684\u5e2e\u52a9\uff0c\u8bf7\u5927\u5bb6\u591a\u591a\u652f\u6301\u7c73\u4e91\uff01\u66f4\u591a\u5173\u4e8e\u6587\u7ae0\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u4e5f\u53ef\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\u3002 \u7f51\u9875\u6eda\u52a8\u6761\u6324\u538b\u5185\u5bb9\u533a\u57df\u600e\u4e48\u529e\uff1f<\/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-52763","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52763","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=52763"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52763\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}