{"id":274892,"date":"2021-01-12T01:54:53","date_gmt":"2021-01-11T17:54:53","guid":{"rendered":"http:\/\/4563.org\/?p=274892"},"modified":"2021-01-12T01:54:53","modified_gmt":"2021-01-11T17:54:53","slug":"tailwind-%e7%9a%84%e9%94%99%e8%af%af%e4%bd%bf%e7%94%a8%e6%96%b9%e5%bc%8f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=274892","title":{"rendered":"tailwind \u7684\u9519\u8bef\u4f7f\u7528\u65b9\u5f0f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  tailwind \u7684\u9519\u8bef\u4f7f\u7528\u65b9\u5f0f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Shook <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u770b\u4e2d\u4e86 tailwindCSS \u7684\u6574\u5408\u5b9e\u529b\uff0c\u611f\u89c9\u5b83\u5728 responsive \u3001spacing \u65b9\u9762\u7684\u65b9\u6848\u662f\u503c\u5f97\u5b66\u4e60\u7684\u3002 \u4f46\u5c31\u662f\u4e0d\u559c\u6b22 tailwind \u628a class \u5f53 style \u5199\u7684\u611f\u89c9\uff0c\u4e8e\u662f\u5f15\u5165\u5230\u9879\u76ee\u540e\uff0c\u628a\u5b83\u5f53\u505a mixins\uff0c\u75af\u72c2\u628a\u539f\u672c\u7684\u6837\u5f0f\u6539\u4e3a @apply \u3002<\/p>\n<p>\u7ed3\u679c\u662f\uff0c\u6bcf\u6b21\u4fdd\u5b58\u7f16\u8bd1\uff0c\u90fd\u9700\u8981\u5341\u51e0\u79d2\u751a\u81f3\u534a\u5206\u949f\u7684\u65f6\u95f4\u3002\u6309 F5 \u5237\u65b0\u4e5f\u8981\u82b1\u8d39\u975e\u5e38\u4e45\u7684\u65f6\u95f4\uff0c\u751a\u81f3\u6574\u4e2a\u9875\u9762\u7ec4\u4ef6\u7684\u5f02\u6b65\u52a0\u8f7d\u90fd\u53d8\u5f97\u6781\u4e3a\u7f13\u6162\uff0c\u5404\u79cd\u52a8\u6548\u4e5f\u5361\u6210 PPT \u3002<\/p>\n<p>\u6211\u89c9\u5f97\u6211\u5b8c\u5168\u63a5\u89e6\u5230\u4e86\u9519\u8bef\u7684 tailwind \u4f7f\u7528\u65b9\u6cd5\uff0c\u8fd9\u6837\u7684\u8868\u73b0\u662f\u5b8c\u5168\u4e0d\u503c\u5f97\u7684\uff0c\u6d6a\u8d39\u4eba\u751f\u3002 \u6709\u4ec0\u4e48\u529e\u6cd5\u4f18\u5316\u5417\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4911424\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : oott123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u628a\u9ed8\u8ba4\u7684\u90a3\u4e9b\u6837\u5f0f\uff08@tailwind base \u5565\u7684\uff09\u62c6\u5230\u53e6\u4e00\u4e2a\u6587\u4ef6\u91cc\uff0c\u6216\u8005\u5e72\u8106\u4e0d\u5f15\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911425\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jirajine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u65e2\u7136\u4e0d\u559c\u6b22 tailwind \u7684 atomic \u7406\u5ff5\uff0c\u90a3\u4e0d\u5982\u76f4\u63a5\u7528\u5176\u4ed6\u6846\u67b6\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911426\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Shook <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @oott123 \u4e00\u7ecf\u70b9\u62e8\uff0c\u6211\u628a tailwind \u7684\u5f15\u7528\u6539\u6210\u4e86\u8fd9\u6837\uff1a<br \/>&#8220;`<br \/>\/\/ main.js<br \/>import &#8216;tailwindcss\/tailwind.css&#8217;;<br \/>&#8220;`<br \/>\u5b8c\u5168\u987a\u6ed1\u4e86\uff0c\u800c\u4e14\u5ba2\u5236\u5316\u6837\u5f0f\u91cc\u7684\u5404\u79cd @layer \u4e5f\u4e0d\u53d7\u5f71\u54cd\uff0ctheme extend \u4e5f\u6b63\u5e38\uff0c\u592a\u68d2\u4e86\uff01<\/p>\n<p>@Jirajine \u6211\u5e0c\u671b\u80fd\u5438\u53d6\u5b83\u597d\u7684\u5730\u65b9\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911427\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Hanser002 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u6709\u4f7f\u7528 css \u9884\u5904\u7406\u5668\uff0c\u53ef\u4ee5\u6309\u81ea\u5df1\u7684\u9700\u6c42\u751f\u6210\u7c7b\u4f3c\u7684\u6837\u5f0f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>tailwind \u7684\u9519\u8bef\u4f7f\u7528\u65b9\u5f0f &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/274892"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=274892"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/274892\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=274892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=274892"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=274892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}