{"id":30491,"date":"2024-11-25T13:48:16","date_gmt":"2024-11-25T05:48:16","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30491\/"},"modified":"2024-11-25T13:48:16","modified_gmt":"2024-11-25T05:48:16","slug":"%e5%85%b3%e4%ba%8ewxss%e7%9a%8410%e7%af%87%e6%96%87%e7%ab%a0%e6%8e%a8%e8%8d%90","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30491\/","title":{"rendered":"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350"},"content":{"rendered":"<p>\u7f16\u8f91\u5668\u6211\u76f4\u63a5\u7528 vscode\uff08\u5176\u5b83\u7f16\u8f91\u5668\u540c\u7406\uff0c\u9884\u89c8\u8fd8\u662f\u7528\u7684\u5fae\u4fe1\u5f00\u53d1\u5de5\u5177\uff09\uff0c\u8bed\u6cd5\u9ad8\u4eae\u5c06 wxml \u8bbe\u7f6e\u6210 html, wxss \u8bbe\u7f6e\u6210 css&#8221;files.associations&#8221;:&nbsp;{ &nbsp;&nbsp;&#8220;*.wxss&#8221;:&nbsp;&#8220;css&#8221;, &nbsp;&nbsp;&#8220;*.wxml&#8221;:&nbsp;&#8220;html&#8221; }\u4e5f\u53ef\u4ee5\u5b89\u88c5\u5c0f\u7a0b\u5e8f\u76f8\u5173\u63d2\u4ef6\u5f00\u59cb\u5199\u4ee3\u7801\u9996\u5148\u9700\u8981\u5b8c\u6574\u770b\u5b8c\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u6587\u6863\uff08\u6846\u67b6\uff0c\u7ec4\u4ef6\u548c API\uff09\uff0c\u65b9\u4fbf\u540e\u9762\u7528\u5230\u65f6\u67e5\u627e\u3002view \u7ec4\u4ef6\u5bf9\u5e94 html \u91cc\u7684 ptext \u5bf9\u5e94 spanwxss \u91cc\u9009\u62e9\u5668\u53ea\u652f\u6301 element, #id, .className, ::after, ::before\u516c\u7528\u7ec4\u4ef6\u9879\u76ee\u76ee\u5f55\u91cc\u65b0\u5efa components \uff0c\u6309\u7c7b\u4f3c pages \u76ee\u5f55\u7ed3<\/p>\n<p><span style=\"line-height: 1.76em\">1. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/996c59b6127fe42597784d54a4296ff4.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe\" alt=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe\" \/><\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1a\u7f16\u8f91\u5668\u6211\u76f4\u63a5\u7528vscode\uff08\u5176\u5b83\u7f16\u8f91\u5668\u540c\u7406\uff0c\u9884\u89c8\u8fd8\u662f\u7528\u7684\u5fae\u4fe1\u5f00\u53d1\u5de5\u5177\uff09\uff0c\u8bed\u6cd5\u9ad8\u4eae\u5c06wxml\u8bbe\u7f6e\u6210html,wxss\u8bbe\u7f6e\u6210css<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">2. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/ca80c43d9150a6406bf9647a2527143d.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe1\" alt=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe1\" \/><\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1a\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u4e86\u5fae\u4fe1\u5c0f\u7a0b\u5e8f WXML\u3001WXSS \u548cJS\u4ecb\u7ecd\u53ca\u8be6\u89e3\u7684\u76f8\u5173\u8d44\u6599,\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e0b<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">3. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/506\/02f28e409e46ede0b2ce964baabb291d.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe2\" alt=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe2\" \/><\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1a\u4ec0\u4e48\u662fWeUI? &nbsp;WeUI\u662f\u5728\u9075\u5b88\u5fae\u4fe1\u89c6\u89c9\u8bbe\u8ba1\u89c4\u8303\u4e0b\uff0c\u7531\u5b98\u65b9\u8bbe\u8ba1\u56e2\u961f\u4e3a\u5c0f\u7a0b\u5e8f\u91cf\u8eab\u5b9a\u5236\u7684\u57fa\u7840\u6837\u5f0f\u5e93\u3002 &nbsp;\u8fd9\u91cc\u628aWeUI\u653e\u5230\u57fa\u7840\u7bc7\u91cc\uff0c\u662f\u56e0\u4e3aWeUI\u662f\u5b98\u65b9\u51fa\u54c1\uff0c\u5e76\u4e14\u572810\u670828\u53f7IDE\u66f4\u65b0\u540e\uff0cIDE\u4e0d\u80fd\u8bc6\u522b\u548c\u5f15\u7528css\uff0c\u540c\u65f6\u4e5f\u5c4f\u853d\u4e86\u4ece\u7f51\u7edc\u83b7\u53d6\u6837\u5f0f\u6587\u4ef6\uff0c\u548ccss\u5212\u6e05\u754c\u9650\u3002<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">4. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/590befd1df301482.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe3\" alt=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe3\" \/><\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1aFlex\u7684\u5e03\u5c40\u76f8\u6bd4\u4f20\u7edf\u7684float\u5e03\u5c40\u6765\u8bf4\uff0c\u7b80\u5355\u3001\u5feb\u6377\u3001\u65b9\u4fbf\u3002\u638c\u63e1flex\u5e03\u5c40\u53ef\u4ee5\u5728\u5236\u4f5c\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u65f6\u51cf\u5c11wxss\u7684\u4ee3\u7801\uff0c\u540c\u65f6\u4e5f\u7b26\u5408\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u7684\u6587\u6863\u8981\u6c42 &nbsp;\u672c\u4ee3\u7801\u4e2d\u6d89\u53ca\u5230\u56db\u79cdFlex\u7684\u5e03\u5c40\u65b9\u5f0f\uff0c\u5206\u522b\u4f7f\u7528\u4e86\u4e0d\u540c\u7684flex\u7684\u4e0d\u540c\u5c5e\u6027\u3002 \u5efa\u8bae\u770b\u672c\u6587\u6700\u540e\u7684\u5b66\u4e60\u53c2\u8003\u8fdb\u884c\u76f8\u5173\u5c5e\u6027\u7684\u5b66\u4e60<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">5. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/5907ed1fc7dbc615.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe4\" alt=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe4\" \/><\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5de5\u5177\u7b2c\u4e09\u65b9\u5f00\u53d1\u5de5\u5177WEPT\uff0cWEPT\u4e3b\u8981\u529f\u80fd\uff1a \u5b9e\u65f6\u66f4\u65b0\uff0c\u652f\u6301 wxml wxss javascript json \u66f4\u52a0\u7a33\u5b9a\uff0c\u4e0d\u50cf\u5b98\u65b9\u5de5\u5177\u7ecf\u5e38\u51fa\u9519 \u6ca1\u6709\u9650\u5236\uff0c\u65e0\u9700\u8054\u7f51\uff0c\u65e0\u9700\u540e\u7aef\u914d\u7f6e CORS \uff0c\u652f\u6301\u79fb\u52a8\u6d4f\u89c8\u3002<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">6. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/5fff244b72bbd24eb3b408de0b70aec2.png\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe5\" alt=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe5\" \/><\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1aWXML WXML\uff08WeiXin Markup Language\uff09\u662f\u5fae\u4fe1\u7684\u4e00\u5957\u6807\u7b7e\u8bed\u8a00\uff0c\u7ed3\u5408\u57fa\u7840\u7ec4\u4ef6\u3001\u4e8b\u4ef6\u7cfb\u7edf\uff0c\u53ef\u4ee5\u6784\u5efa\u51fa\u9875\u9762\u7684\u7ed3\u6784\u3002 \uff08\u5c0f\u5b89\u5a1c\uff1a\u597d\u50cf\u5f88\u5389\u5bb3\u7684\u6837\u5b50\uff0c\u90a3\u57fa\u7840\u7ec4\u4ef6\u3001\u4e8b\u4ef6\u7cfb\u7edf\u662f\u4ec0\u4e48\uff1f\u611f\u89c9\u66f4\u5389\u5bb3\uff0c\u56e0\u4e3a\u5fc5\u987b\u7ed3\u5408\u5b83\u4eec\u3002\uff09\uff0c\u57fa\u7840\u7ec4\u4ef6\u7c7b\u4f3cHTML\u4e2d\u7684\u6807\u7b7e\uff0c\u4e8b\u4ef6\u7cfb\u7edf\u662fJavaScript\u4e2d\u7684\u4e8b\u4ef6\uff0c\u53ef\u5904\u7406\u903b\u8f91\u53cd\u5e94\u5230\u754c\u9762\u4e0a\uff1bwxml\u53ea\u662f\u4e00\u4e2a\u6587\u4ef6\u683c\u5f0f\uff0c\u5982\u679c\u6ca1\u6709\u7ec4\u4ef6\u548c\u4e8b\u4ef6\u5b83\u6ca1\u4efb\u4f55\u7528\u5904\uff0c\u53c8\u5982\u679c\u628a\u7ec4\u4ef6\u3001\u4e8b&#8230;<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">7. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/23eb9930c455725f15617e4d989192ad.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe6\" alt=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe6\" \/><\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1a\u8fd9\u662f\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u65b0\u624b\u7ec3\u4e60\u7684\u9879\u76ee\uff08\u57fa\u4e8e\u5fae\u4fe1quick demo\u6539\u5199\uff09\uff0c\u505a\u4e86\u4e00\u4e2a\u8ba1\u7b97\u5668\u3002\u6709\u57fa\u672c\u7684UI\uff0c\u6709\u57fa\u672c\u7684\u8df3\u8f6c\u53ca\u7b80\u5355\u7684js\u903b\u8f91\uff0c\u5f88\u9002\u5408\u521d\u5b66\u8005\u9605\u8bfb\u3002 \u8bfb\u522b\u4eba\u7684\u4ee3\u7801\uff0c\u5c31\u662f\u5f52\u6574\u81ea\u5df1\u7684\u7f16\u7a0b\u6280\u80fd\u3002 \u6d89\u53ca\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u76f8\u5173\u77e5\u8bc6\uff1a 1\u3001CSS Flexbox\u5e03\u5c40 2\u3001\u4e8b\u4ef6\u7ed1\u5b9a\u3001\u9875\u9762\u8df3\u8f6c 3\u3001Page\u3001window\u3001App\u5168\u5c40\u8bbe\u7f6e 4\u3001wxml\u3001wxsss\u3001js\u3001json\u6587\u4ef6\u4f7f\u7528\u65b9\u6cd5 5\u3001view\u3001text\u3001&#8230;<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">8. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/f6a5ce49e9273dc9f6fa8e36139dc4a7.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe7\" alt=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe7\" \/><\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1a\u4e0a\u4e00\u7bc7\u6559\u7a0b\u8c08\u4e86\u4e9b\u548c\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u672c\u8eab\u65e0\u5173\u7684\u6280\u672f\u95ee\u9898\uff0c\u73b0\u5728\u56de\u5230\u4e3b\u9898\u3002 \u8fd9\u8fb9\u6559\u7a0b\u4e3b\u8981\u5bf9\u9ed8\u8ba4\u751f\u6210\u7684index \u9875\u9762\u8fdb\u884c\u8bb2\u89e3\u3002\u5728\u4e4b\u524d\u7684\u6559\u7a0b\u4e2d\u6709\u5199\u9053\uff0c\u6bcf\u4e00\u4e2a\u9875\u9762\u90fd\u5305\u542b.js(\u5904\u7406\u903b\u8f91)\uff0c.wxml(\u63cf\u8ff0\u9875\u9762\u5185\u5bb9)\uff0c.wxss(\u914d\u7f6e\u9875\u9762\u6837\u5f0f)\u4e09\u4e2a\u6587\u4ef6\uff0cindex \u9875\u9762\u4e5f\u662f\u5982\u6b64\u3002 \u8bb2\u89e3\u4e4b\u524d\u5148\u4e0a\u56fe index\u9875\u9762\u7684\u5185\u5bb9\u4e0d\u591a\uff0c\u53ea\u6709\u4e00\u4e2a\u7528\u6237\u5934\u50cf\uff0c\u7528\u6237\u59d3\u540d\uff0c\u548c\u4e00\u4e2a&#8221;Hello World&#8221;\uff0c\u9996\u5148\u6765\u770b\u770bindex&#8230;.<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">9. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/f0c6743c4de25e9eb57398446cc833a8.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe8\" alt=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe8\" \/><\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u6559\u7a0b(\u57fa\u7840\u7bc7)1\u521d\u8bc6\u5fae\u4fe1\u5c0f\u7a0b\u5e8f \u5728\u4e0a\u4e00\u7bc7\u6559\u7a0b\u7684\u6700\u540e\uff0c\u6211\u4eec\u751f\u6210\u4e86\u4e00\u4e2a\u7c7b\u4f3c&#8221;Hello World&#8221;\u7684\u5c0f\u7a0b\u5e8f\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u7f16\u5199\u4efb\u4f55\u4e00\u884c\u4ee3\u7801\u3002\u5728\u65b0\u5efa\u4e00\u4e2a\u9879\u76ee\u540e\uff0c\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u4f1a\u751f\u6210\u4e00\u4e2a\u9ed8\u8ba4\u7684\u7a0b\u5e8f\u6846\u67b6\uff0c\u540e\u7eed\u7a0b\u5e8f\u7684\u5f00\u53d1\u5de5\u4f5c\u90fd\u5728\u8fd9\u4e2a\u6846\u67b6\u4e0a\u8fdb\u884c\u3002\u8fd9\u4e2a\u9ed8\u8ba4\u6846\u67b6\u5305\u542b\u4e0b\u9762\u51e0\u90e8\u5206\uff1a app.xx \u6bcf\u4e2a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u90fd\u4f1a\u5305\u542bapp.js, app.json, app.wxss \u4e09\u4e2a\u6587\u4ef6\uff0c\u5176\u4e2dapp.js\u6587&#8230;<\/span><\/p>\n<p><span style=\"line-height: 1.76em\">10. <\/span><\/p>\n<p><span style=\"line-height: 1.76em\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/001\/505\/d4287181d9231800ed03708bd9d5f89a.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe9\" alt=\"\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\u63d2\u56fe9\" \/><\/span><\/p>\n<p><span style=\"line-height: 1.76em\">\u7b80\u4ecb\uff1a\u62bd\u5c49\u83dc\u5355\u662fapp\u4e0a\u5e38\u89c1\u7684\u83dc\u5355\u8bbe\u8ba1\u65b9\u5f0f\uff0c\u5178\u578b\u7684\u62bd\u5c49\u83dc\u5355\u5982\u4e0b\u56fe\u6240\u793a \u4e0b\u9762\u5c55\u793a\u5982\u4f55\u57fa\u4e8e\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5b9e\u73b0\u62bd\u5c49\u83dc\u5355,\u6700\u7ec8\u6548\u679c\u5982\u4e0b\u56fe\u6240\u793a\uff1a \u9875\u9762\u5305\u542b\u4e00\u4e2a\u4e3b\u9875\u548c\u62bd\u5c49\u83dc\u5355\u9875\uff0c\u4e3a\u4e86\u5b9e\u73b0\u6ed1\u52a8\u6548\u679c\uff0c\u9875\u9762\u91c7\u7528absolute\u5e03\u5c40\uff0c\u4ee3\u7801\u5982\u4e0bindex.wxml index.wxss \u7a0b\u5e8f\u7ed1\u5b9a\u4e86\u4e3b\u9875\u7684touch\u4e8b\u4ef6\u548ctap\u4e8b\u4ef6\uff0c\u5e76\u4e14\u4f7f\u7528catchtouchmove\u963b\u6b62\u4e86move\u4e8b\u4ef6\u7684\u4f20\u9012\uff0c\u56e0\u4e3a\u5728\u771f\u673a\u73af\u5883\u4e0b\u9875\u9762\u4f1a\u81ea\u52a8\u54cd\u5e94\u6ed1&#8230;<\/span><\/p>\n<p><strong>\u3010\u76f8\u5173\u95ee\u7b54\u63a8\u8350\u3011\uff1a<\/strong><\/p>\n<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5173\u4e8ewxss\u768410\u7bc7\u6587\u7ae0\u63a8\u8350\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>\u7f16\u8f91\u5668\u6211\u76f4\u63a5\u7528 vscode\uff08\u5176\u5b83\u7f16\u8f91\u5668\u540c\u7406\uff0c\u9884\u89c8\u8fd8\u662f\u7528\u7684\u5fae\u4fe1\u5f00\u53d1\u5de5\u5177\uff09\uff0c\u8bed\u6cd5\u9ad8\u4eae\u5c06 wxml \u8bbe\u7f6e\u6210 html, wxss \u8bbe\u7f6e\u6210 css&#8221;files.associations&#8221;:&nbsp;{ &nbsp;&nbsp;&#8220;*.wxss&#8221;:&nbsp;&#8220;css&#8221;, &nbsp;&nbsp;&#8220;*.wxml&#8221;:&nbsp;&#8220;html&#8221; }\u4e5f\u53ef\u4ee5\u5b89\u88c5\u5c0f\u7a0b\u5e8f\u76f8\u5173\u63d2\u4ef6\u5f00\u59cb\u5199\u4ee3\u7801\u9996\u5148\u9700\u8981\u5b8c\u6574\u770b\u5b8c\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u6587\u6863\uff08\u6846\u67b6\uff0c\u7ec4\u4ef6\u548c API\uff09\uff0c\u65b9\u4fbf\u540e\u9762\u7528\u5230\u65f6\u67e5\u627e\u3002view \u7ec4\u4ef6\u5bf9\u5e94 html \u91cc\u7684 ptext \u5bf9\u5e94 spanwxss \u91cc\u9009\u62e9\u5668\u53ea\u652f\u6301 element, #id, .className, ::after, ::before\u516c\u7528\u7ec4\u4ef6\u9879\u76ee\u76ee\u5f55\u91cc\u65b0\u5efa components \uff0c\u6309\u7c7b\u4f3c pages \u76ee\u5f55\u7ed3 1. \u7b80\u4ecb\uff1a\u7f16\u8f91\u5668\u6211\u76f4\u63a5\u7528vscode\uff08\u5176\u5b83\u7f16\u8f91\u5668\u540c\u7406\uff0c\u9884\u89c8\u8fd8\u662f\u7528\u7684\u5fae\u4fe1\u5f00\u53d1\u5de5\u5177\uff09\uff0c\u8bed\u6cd5\u9ad8\u4eae\u5c06wxml\u8bbe\u7f6e\u6210html,wxss\u8bbe\u7f6e\u6210css 2. \u7b80\u4ecb\uff1a\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u4e86\u5fae\u4fe1\u5c0f\u7a0b\u5e8f WXML\u3001WXSS \u548cJS\u4ecb\u7ecd\u53ca\u8be6\u89e3\u7684\u76f8\u5173\u8d44\u6599,\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e0b 3. \u7b80\u4ecb\uff1a\u4ec0\u4e48\u662fWeUI? &nbsp;WeUI\u662f\u5728\u9075\u5b88\u5fae\u4fe1\u89c6\u89c9\u8bbe\u8ba1\u89c4\u8303\u4e0b\uff0c\u7531\u5b98\u65b9\u8bbe\u8ba1\u56e2\u961f\u4e3a\u5c0f\u7a0b\u5e8f\u91cf\u8eab\u5b9a\u5236\u7684\u57fa\u7840\u6837\u5f0f\u5e93\u3002 &nbsp;\u8fd9\u91cc\u628aWeUI\u653e\u5230\u57fa\u7840\u7bc7\u91cc\uff0c\u662f\u56e0\u4e3aWeUI\u662f\u5b98\u65b9\u51fa\u54c1\uff0c\u5e76\u4e14\u572810\u670828\u53f7IDE\u66f4\u65b0\u540e\uff0cIDE\u4e0d\u80fd\u8bc6\u522b\u548c\u5f15\u7528css\uff0c\u540c\u65f6\u4e5f\u5c4f\u853d\u4e86\u4ece\u7f51\u7edc\u83b7\u53d6\u6837\u5f0f\u6587\u4ef6\uff0c\u548ccss\u5212\u6e05\u754c\u9650\u3002 4. \u7b80\u4ecb\uff1aFlex\u7684\u5e03\u5c40\u76f8\u6bd4\u4f20\u7edf\u7684float\u5e03\u5c40\u6765\u8bf4\uff0c\u7b80\u5355\u3001\u5feb\u6377\u3001\u65b9\u4fbf\u3002\u638c\u63e1flex\u5e03\u5c40\u53ef\u4ee5\u5728\u5236\u4f5c\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u65f6\u51cf\u5c11wxss\u7684\u4ee3\u7801\uff0c\u540c\u65f6\u4e5f\u7b26\u5408\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u7684\u6587\u6863\u8981\u6c42 &nbsp;\u672c\u4ee3\u7801\u4e2d\u6d89\u53ca\u5230\u56db\u79cdFlex\u7684\u5e03\u5c40\u65b9\u5f0f\uff0c\u5206\u522b\u4f7f\u7528\u4e86\u4e0d\u540c\u7684flex\u7684\u4e0d\u540c\u5c5e\u6027\u3002 \u5efa\u8bae\u770b\u672c\u6587\u6700\u540e\u7684\u5b66\u4e60\u53c2\u8003\u8fdb\u884c\u76f8\u5173\u5c5e\u6027\u7684\u5b66\u4e60 5. \u7b80\u4ecb\uff1a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5de5\u5177\u7b2c\u4e09\u65b9\u5f00\u53d1\u5de5\u5177WEPT\uff0cWEPT\u4e3b\u8981\u529f\u80fd\uff1a \u5b9e\u65f6\u66f4\u65b0\uff0c\u652f\u6301 wxml wxss javascript json \u66f4\u52a0\u7a33\u5b9a\uff0c\u4e0d\u50cf\u5b98\u65b9\u5de5\u5177\u7ecf\u5e38\u51fa\u9519 \u6ca1\u6709\u9650\u5236\uff0c\u65e0\u9700\u8054\u7f51\uff0c\u65e0\u9700\u540e\u7aef\u914d\u7f6e CORS \uff0c\u652f\u6301\u79fb\u52a8\u6d4f\u89c8\u3002 6. \u7b80\u4ecb\uff1aWXML [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-30491","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30491","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=30491"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30491\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}