{"id":2636,"date":"2024-11-10T10:31:14","date_gmt":"2024-11-10T02:31:14","guid":{"rendered":"https:\/\/fwq.ai\/blog\/2636\/"},"modified":"2024-11-10T10:31:14","modified_gmt":"2024-11-10T02:31:14","slug":"vue-uniapp-%e9%80%89%e9%a1%b9%e5%8d%a1%e9%80%89%e4%b8%ad%e6%97%b6%e5%a6%82%e4%bd%95%e6%b7%bb%e5%8a%a0%e8%be%b9%e6%a1%86%e5%92%8c%e8%83%8c%e6%99%af%e8%89%b2%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/2636\/","title":{"rendered":"Vue\/UniApp \u9009\u9879\u5361\u9009\u4e2d\u65f6\u5982\u4f55\u6dfb\u52a0\u8fb9\u6846\u548c\u80cc\u666f\u8272\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173081779150791.jpg\" class=\"aligncenter\" title=\"Vue\/UniApp \u9009\u9879\u5361\u9009\u4e2d\u65f6\u5982\u4f55\u6dfb\u52a0\u8fb9\u6846\u548c\u80cc\u666f\u8272\uff1f\u63d2\u56fe\" alt=\"Vue\/UniApp \u9009\u9879\u5361\u9009\u4e2d\u65f6\u5982\u4f55\u6dfb\u52a0\u8fb9\u6846\u548c\u80cc\u666f\u8272\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\/\u4e2d\u9009\u4e2d\u65f6\u6709\u8fb9\u6846\u548c\u80cc\u666f\u8272\u7684\u9009\u9879\u5361\u5982\u4f55\u5b9e\u73b0<\/strong><\/p>\n<p>\u539f\u5e16\u4e2d\u63d0\u4f9b\u7684\u4ee3\u7801\u4e0d\u80fd\u5b9e\u73b0\u9009\u4e2d\u65f6\u6709\u8fb9\u6846\u548c\u80cc\u666f\u8272\u7684\u6548\u679c\u3002\u4e0b\u9762\u662f\u7528 html \u5b9e\u73b0\u8fd9\u79cd\u6548\u679c\u7684\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n    &lt;meta charset=\"UTF-8\"&gt;\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\n    &lt;title&gt;Document&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;div class=\"tabs\"&gt;\n        &lt;div class=\"tab active\"&gt;\u65e5&lt;\/div&gt;\n        &lt;div class=\"tab\"&gt;\u5468&lt;\/div&gt;\n        &lt;div class=\"tab\"&gt;\u6708&lt;\/div&gt;\n        &lt;div class=\"tab\"&gt;\u5e74&lt;\/div&gt;\n    &lt;\/div&gt;\n&lt;\/body&gt;\n&lt;style&gt;\n.tabs {\n    display: flex;\n    justify-content: space-between;\n    flex-direction: row;\n    background-color: #E1E1E1;\n    border-radius: 82px;\n    height: 82px;\n}\n\n.tab {\n    font-size: 36px;\n    color: rgba(69, 69, 68, 1);\n    width: 100%;\n    text-align: center;\n    line-height: 82px;\n}\n\n.tab.active {\n    color: rgba(255, 255, 255, 1);\n    background-color: #31BDEC;\n    border-radius: 82px;\n}\n&lt;\/style&gt;\n&lt;\/html&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6548\u679c\u5982\u4e0b\uff1a<br \/>[\u56fe\u7247]<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fVue\/UniApp \u9009\u9879\u5361\u9009\u4e2d\u65f6\u5982\u4f55\u6dfb\u52a0\u8fb9\u6846\u548c\u80cc\u666f\u8272\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>\/\u4e2d\u9009\u4e2d\u65f6\u6709\u8fb9\u6846\u548c\u80cc\u666f\u8272\u7684\u9009\u9879\u5361\u5982\u4f55\u5b9e\u73b0 \u539f\u5e16\u4e2d\u63d0\u4f9b\u7684\u4ee3\u7801\u4e0d\u80fd\u5b9e\u73b0\u9009\u4e2d\u65f6\u6709\u8fb9\u6846\u548c\u80cc\u666f\u8272\u7684\u6548\u679c\u3002\u4e0b\u9762\u662f\u7528 html \u5b9e\u73b0\u8fd9\u79cd\u6548\u679c\u7684\u4ee3\u7801\uff1a &lt;!DOCTYPE html&gt; &lt;html lang=&#8221;en&#8221;&gt; &lt;head&gt; &lt;meta charset=&#8221;UTF-8&#8243;&gt; &lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1.0&#8243;&gt; &lt;title&gt;Document&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;div class=&#8221;tabs&#8221;&gt; &lt;div class=&#8221;tab active&#8221;&gt;\u65e5&lt;\/div&gt; &lt;div class=&#8221;tab&#8221;&gt;\u5468&lt;\/div&gt; &lt;div class=&#8221;tab&#8221;&gt;\u6708&lt;\/div&gt; &lt;div class=&#8221;tab&#8221;&gt;\u5e74&lt;\/div&gt; &lt;\/div&gt; &lt;\/body&gt; &lt;style&gt; .tabs { display: flex; justify-content: space-between; flex-direction: row; background-color: #E1E1E1; border-radius: 82px; height: 82px; } .tab { font-size: 36px; color: rgba(69, 69, 68, [&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-2636","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2636","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=2636"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2636\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=2636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=2636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=2636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}