{"id":4143,"date":"2024-11-10T09:38:12","date_gmt":"2024-11-10T01:38:12","guid":{"rendered":"https:\/\/fwq.ai\/blog\/4143\/"},"modified":"2024-11-10T09:38:12","modified_gmt":"2024-11-10T01:38:12","slug":"%e5%a6%82%e4%bd%95%e7%94%a8-element-ui%e3%80%81ant-design-%e5%92%8c-vant-ui-%e7%ad%89%e7%bb%84%e4%bb%b6%e6%88%96-css-%e5%ae%9e%e7%8e%b0%e6%a8%aa%e5%90%91-u-%e5%9e%8b%e6%ad%a5%e9%aa%a4%e6%9d%a1","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/4143\/","title":{"rendered":"\u5982\u4f55\u7528 Element UI\u3001Ant Design \u548c Vant UI \u7b49\u7ec4\u4ef6\u6216 CSS \u5b9e\u73b0\u6a2a\u5411 U \u578b\u6b65\u9aa4\u6761\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173123178041406.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u7528 Element UI\u3001Ant Design \u548c Vant UI \u7b49\u7ec4\u4ef6\u6216 CSS \u5b9e\u73b0\u6a2a\u5411 U \u578b\u6b65\u9aa4\u6761\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u7528 Element UI\u3001Ant Design \u548c Vant UI \u7b49\u7ec4\u4ef6\u6216 CSS \u5b9e\u73b0\u6a2a\u5411 U \u578b\u6b65\u9aa4\u6761\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u66ff\u4ee3\u6a2a\u5411U\u578b\u6b65\u9aa4\u6761\u7ec4\u4ef6<\/strong><\/p>\n<p>\u5728\u5f00\u53d1\u6a2a\u5411 U \u578b\u6b65\u9aa4\u6761\u65f6\uff0c\u5f00\u53d1\u8005\u53ef\u80fd\u4f1a\u5bfb\u6c42\u7c7b\u4f3c\u7684\u7ec4\u4ef6\u6216 CSS \u5b9e\u73b0\u3002\u672c\u6587\u63d0\u4f9b\u4e86\u4e00\u4e9b\u66ff\u4ee3\u65b9\u6848\uff1a<\/p>\n<p><strong>\u7c7b\u4f3c\u7ec4\u4ef6\uff1a<\/strong><\/p>\n<ul>\n<li> <strong>Element UI\uff1a<\/strong>\u63d0\u4f9b\u4e86\u4e00\u4e2a\u540d\u4e3a &#8220;Steps&#8221; \u7684\u7ec4\u4ef6\uff0c\u5141\u8bb8\u521b\u5efa\u6a2a\u5411\u6216\u5782\u76f4\u7684 U \u578b\u6b65\u9aa4\u6761\u3002<\/li>\n<li> <strong>Ant Design\uff1a<\/strong>\u540c\u6837\u63d0\u4f9b\u4e86\u4e00\u4e2a\u540d\u4e3a &#8220;Steps&#8221; \u7684\u7ec4\u4ef6\uff0c\u5177\u6709\u7c7b\u4f3c\u7684\u529f\u80fd\u3002<\/li>\n<li> <strong>Vant UI\uff1a<\/strong>\u63d0\u4f9b\u4e86\u4e00\u4e2a\u540d\u4e3a &#8220;Progress&#8221; \u7684\u7ec4\u4ef6\uff0c\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u5177\u6709\u8fdb\u5ea6\u6761\u529f\u80fd\u7684 U \u578b\u6b65\u9aa4\u6761\u3002<\/li>\n<\/ul>\n<p><strong>CSS \u5b9e\u73b0\uff1a<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u4f7f\u7528 CSS \u4e5f\u80fd\u5b9e\u73b0\u7c7b\u4f3c\u7684\u6a2a\u5411 U \u578b\u6b65\u9aa4\u6761\u6548\u679c\uff1a<\/p>\n<ul>\n<li> <strong>\u5b9a\u4f4d\uff1a<\/strong>\u4f7f\u7528 position: absolute \u548c left \u6216 right \u5c5e\u6027\u5c06\u6b65\u9aa4\u9879\u5b9a\u4f4d\u5728\u6c34\u5e73\u7ebf\u4e0a\u3002<\/li>\n<li> <strong>\u8fb9\u6846\uff1a<\/strong>\u4f7f\u7528 border-left \u6216 border-right \u5c5e\u6027\u521b\u5efa\u6b65\u9aa4\u4e4b\u95f4\u7684\u8fde\u63a5\u7ebf\u3002<\/li>\n<li> <strong>\u80cc\u666f\uff1a<\/strong>\u4f7f\u7528 background \u5c5e\u6027\u4e3a\u6b65\u9aa4\u9879\u8bbe\u7f6e\u80cc\u666f\u989c\u8272\u6216\u6e10\u53d8\u6548\u679c\u3002<\/li>\n<li> <strong>\u6587\u672c\u5bf9\u9f50\uff1a<\/strong>\u4f7f\u7528 text-align \u5c5e\u6027\u5c06\u6b65\u9aa4\u9879\u6587\u672c\u5bf9\u9f50\u5230\u4e2d\u5fc3\u3002<\/li>\n<\/ul>\n<p>\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u989d\u5916\u7684 CSS \u6280\u672f\u6765\u5b9e\u73b0\u8fdb\u5ea6\u6761\u3001\u52a8\u753b\u6548\u679c\u548c\u5176\u4ed6\u81ea\u5b9a\u4e49\u529f\u80fd\u3002<\/p>\n<p><strong>\u7c7b\u4f3c\u793a\u4f8b\uff1a<\/strong><\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a SegmentFault \u8bba\u575b\u4e2d\u63d0\u4f9b\u7684\u7c7b\u4f3c\u5b9e\u73b0\u793a\u4f8b\uff1a<\/p>\n<p>[\u56fe\u7247 alt=&#8221;\u793a\u4f8b\u6b65\u9aa4\u6761&#8221;]<\/p>\n<p><strong>\u76f8\u5173\u8bf4\u660e\uff1a<\/strong><\/p>\n<p>https:\/\/segmentfault.com\/q\/1010000044071345<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u7528 Element UI\u3001Ant Design \u548c Vant UI \u7b49\u7ec4\u4ef6\u6216 CSS \u5b9e\u73b0\u6a2a\u5411 U \u578b\u6b65\u9aa4\u6761\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>\u66ff\u4ee3\u6a2a\u5411U\u578b\u6b65\u9aa4\u6761\u7ec4\u4ef6 \u5728\u5f00\u53d1\u6a2a\u5411 U \u578b\u6b65\u9aa4\u6761\u65f6\uff0c\u5f00\u53d1\u8005\u53ef\u80fd\u4f1a\u5bfb\u6c42\u7c7b\u4f3c\u7684\u7ec4\u4ef6\u6216 CSS \u5b9e\u73b0\u3002\u672c\u6587\u63d0\u4f9b\u4e86\u4e00\u4e9b\u66ff\u4ee3\u65b9\u6848\uff1a \u7c7b\u4f3c\u7ec4\u4ef6\uff1a Element UI\uff1a\u63d0\u4f9b\u4e86\u4e00\u4e2a\u540d\u4e3a &#8220;Steps&#8221; \u7684\u7ec4\u4ef6\uff0c\u5141\u8bb8\u521b\u5efa\u6a2a\u5411\u6216\u5782\u76f4\u7684 U \u578b\u6b65\u9aa4\u6761\u3002 Ant Design\uff1a\u540c\u6837\u63d0\u4f9b\u4e86\u4e00\u4e2a\u540d\u4e3a &#8220;Steps&#8221; \u7684\u7ec4\u4ef6\uff0c\u5177\u6709\u7c7b\u4f3c\u7684\u529f\u80fd\u3002 Vant UI\uff1a\u63d0\u4f9b\u4e86\u4e00\u4e2a\u540d\u4e3a &#8220;Progress&#8221; \u7684\u7ec4\u4ef6\uff0c\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u5177\u6709\u8fdb\u5ea6\u6761\u529f\u80fd\u7684 U \u578b\u6b65\u9aa4\u6761\u3002 CSS \u5b9e\u73b0\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u4f7f\u7528 CSS \u4e5f\u80fd\u5b9e\u73b0\u7c7b\u4f3c\u7684\u6a2a\u5411 U \u578b\u6b65\u9aa4\u6761\u6548\u679c\uff1a \u5b9a\u4f4d\uff1a\u4f7f\u7528 position: absolute \u548c left \u6216 right \u5c5e\u6027\u5c06\u6b65\u9aa4\u9879\u5b9a\u4f4d\u5728\u6c34\u5e73\u7ebf\u4e0a\u3002 \u8fb9\u6846\uff1a\u4f7f\u7528 border-left \u6216 border-right \u5c5e\u6027\u521b\u5efa\u6b65\u9aa4\u4e4b\u95f4\u7684\u8fde\u63a5\u7ebf\u3002 \u80cc\u666f\uff1a\u4f7f\u7528 background \u5c5e\u6027\u4e3a\u6b65\u9aa4\u9879\u8bbe\u7f6e\u80cc\u666f\u989c\u8272\u6216\u6e10\u53d8\u6548\u679c\u3002 \u6587\u672c\u5bf9\u9f50\uff1a\u4f7f\u7528 text-align \u5c5e\u6027\u5c06\u6b65\u9aa4\u9879\u6587\u672c\u5bf9\u9f50\u5230\u4e2d\u5fc3\u3002 \u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u989d\u5916\u7684 CSS \u6280\u672f\u6765\u5b9e\u73b0\u8fdb\u5ea6\u6761\u3001\u52a8\u753b\u6548\u679c\u548c\u5176\u4ed6\u81ea\u5b9a\u4e49\u529f\u80fd\u3002 \u7c7b\u4f3c\u793a\u4f8b\uff1a \u4ee5\u4e0b\u662f\u4e00\u4e2a [&hellip;]<\/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-4143","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/4143","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=4143"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/4143\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=4143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=4143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=4143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}