{"id":25905,"date":"2024-11-24T09:11:56","date_gmt":"2024-11-24T01:11:56","guid":{"rendered":"https:\/\/fwq.ai\/blog\/25905\/"},"modified":"2024-11-24T09:11:56","modified_gmt":"2024-11-24T01:11:56","slug":"elementui-%e5%9c%a8%e7%a7%bb%e5%8a%a8%e7%ab%af%e5%bc%80%e5%8f%91%e4%b8%ad%e6%9c%89%e5%93%aa%e4%ba%9b%e5%b1%80%e9%99%90%e6%80%a7%ef%bc%9f%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3%ef%bc%9f-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/25905\/","title":{"rendered":"ElementUI \u5728\u79fb\u52a8\u7aef\u5f00\u53d1\u4e2d\u6709\u54ea\u4e9b\u5c40\u9650\u6027\uff1f\u5982\u4f55\u89e3\u51b3\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173072415466632.jpg\" class=\"aligncenter\" title=\"ElementUI \u5728\u79fb\u52a8\u7aef\u5f00\u53d1\u4e2d\u6709\u54ea\u4e9b\u5c40\u9650\u6027\uff1f\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" alt=\"ElementUI \u5728\u79fb\u52a8\u7aef\u5f00\u53d1\u4e2d\u6709\u54ea\u4e9b\u5c40\u9650\u6027\uff1f\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>ElementUI \u4e0e Vant \u5728\u79fb\u52a8\u7aef\u5f00\u53d1\u4e2d\u7684\u5dee\u5f02<\/strong><\/p>\n<p>\u5728\u4f7f\u7528 ElementUI \u5f00\u53d1\u79fb\u52a8\u7aef\u9875\u9762\u65f6\uff0c\u5f00\u53d1\u8005\u53ef\u80fd\u4f1a\u53d1\u73b0\u4e0e Vant \u76f8\u6bd4\u5b58\u5728\u4e00\u5b9a\u7684\u5c40\u9650\u6027\u3002\u8fd9\u662f\u56e0\u4e3a ElementUI \u4e3b\u8981\u9488\u5bf9 PC \u7aef\u524d\u7aef\uff0c\u800c Vant \u4e13\u6ce8\u4e8e\u79fb\u52a8\u7aef\u5f00\u53d1\u3002<\/p>\n<p>\u4f8b\u5982\uff0cElementUI \u4e2d\u7684\u5f39\u7a97\u63d0\u793a\u7ec4\u4ef6\u5728 PC \u7aef\u8fd0\u4f5c\u6b63\u5e38\uff0c\u4f46\u5728\u79fb\u52a8\u7aef\u5374\u9700\u8981\u91cd\u65b0\u8c03\u6574\u5927\u5c0f\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u91c7\u7528\u4ee5\u4e0b\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528\u767e\u5206\u6bd4\u5bbd\u5ea6\u8bbe\u7f6e\u5f39\u7a97\uff0c\u4f7f\u5176\u9002\u5e94\u5c4f\u5e55\u5927\u5c0f\u3002<\/li>\n<li>\u8986\u76d6\u7ec4\u4ef6\u7684 max-width \u5c5e\u6027\u5e76\u4f7f\u7528 px \u8bbe\u7f6e\u56fa\u5b9a\u5bbd\u5ea6\u3002<\/li>\n<li>\u91c7\u7528 PC \u548c\u79fb\u52a8\u7aef\u4e24\u5957\u4ee3\u7801\u5f00\u53d1\uff0c\u4ee5\u5b9e\u73b0\u66f4\u597d\u7684\u9002\u914d\u6027\u3002<\/li>\n<li>\u4f7f\u7528 px2rem \u7b49\u5de5\u5177\u8f6c\u6362\u5355\u4f4d\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662fElementUI \u5728\u79fb\u52a8\u7aef\u5f00\u53d1\u4e2d\u6709\u54ea\u4e9b\u5c40\u9650\u6027\uff1f\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>ElementUI \u4e0e Vant \u5728\u79fb\u52a8\u7aef\u5f00\u53d1\u4e2d\u7684\u5dee\u5f02 \u5728\u4f7f\u7528 ElementUI \u5f00\u53d1\u79fb\u52a8\u7aef\u9875\u9762\u65f6\uff0c\u5f00\u53d1\u8005\u53ef\u80fd\u4f1a\u53d1\u73b0\u4e0e Vant \u76f8\u6bd4\u5b58\u5728\u4e00\u5b9a\u7684\u5c40\u9650\u6027\u3002\u8fd9\u662f\u56e0\u4e3a ElementUI \u4e3b\u8981\u9488\u5bf9 PC \u7aef\u524d\u7aef\uff0c\u800c Vant \u4e13\u6ce8\u4e8e\u79fb\u52a8\u7aef\u5f00\u53d1\u3002 \u4f8b\u5982\uff0cElementUI \u4e2d\u7684\u5f39\u7a97\u63d0\u793a\u7ec4\u4ef6\u5728 PC \u7aef\u8fd0\u4f5c\u6b63\u5e38\uff0c\u4f46\u5728\u79fb\u52a8\u7aef\u5374\u9700\u8981\u91cd\u65b0\u8c03\u6574\u5927\u5c0f\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u91c7\u7528\u4ee5\u4e0b\u65b9\u6cd5\uff1a \u4f7f\u7528\u767e\u5206\u6bd4\u5bbd\u5ea6\u8bbe\u7f6e\u5f39\u7a97\uff0c\u4f7f\u5176\u9002\u5e94\u5c4f\u5e55\u5927\u5c0f\u3002 \u8986\u76d6\u7ec4\u4ef6\u7684 max-width \u5c5e\u6027\u5e76\u4f7f\u7528 px \u8bbe\u7f6e\u56fa\u5b9a\u5bbd\u5ea6\u3002 \u91c7\u7528 PC \u548c\u79fb\u52a8\u7aef\u4e24\u5957\u4ee3\u7801\u5f00\u53d1\uff0c\u4ee5\u5b9e\u73b0\u66f4\u597d\u7684\u9002\u914d\u6027\u3002 \u4f7f\u7528 px2rem \u7b49\u5de5\u5177\u8f6c\u6362\u5355\u4f4d\u3002 \u4ee5\u4e0a\u5c31\u662fElementUI \u5728\u79fb\u52a8\u7aef\u5f00\u53d1\u4e2d\u6709\u54ea\u4e9b\u5c40\u9650\u6027\uff1f\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-25905","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25905","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=25905"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25905\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=25905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=25905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=25905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}