{"id":12376824,"date":"2026-03-18T23:40:24","date_gmt":"2026-03-18T15:40:24","guid":{"rendered":"https:\/\/www.likacloud.com\/knowledge\/tailwind-css-%e6%a0%b8%e5%bf%83%e6%a6%82%e5%bf%b5%e4%b8%8e%e5%b7%a5%e4%bd%9c%e6%b5%81%e8%a7%a3%e6%9e%90\/"},"modified":"2026-03-18T23:46:19","modified_gmt":"2026-03-18T15:46:19","slug":"tailwind-css-core-concepts-workflow-explained","status":"publish","type":"knowledge_post","link":"https:\/\/www.likacloud.com\/ko\/knowledge\/website-building\/tailwind-css-core-concepts-workflow-explained\/","title":{"rendered":"Tailwind CSS\uc758 \ud575\uc2ec \uac1c\ub150\uacfc \uc791\uc5c5 \ud750\ub984 \ubd84\uc11d"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Tailwind CSS \u6838\u5fc3\u6982\u5ff5\u4e0e\u5de5\u4f5c\u6d41\u89e3\u6790<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Tailwind CSS<\/code> \u662f\u4e00\u6b3e\u529f\u80fd\u4f18\u5148\u7684 CSS \u6846\u67b6\uff0c\u5b83\u901a\u8fc7\u63d0\u4f9b\u4e00\u7cfb\u5217\u9ad8\u5ea6\u53ef\u7ec4\u5408\u7684\u5e95\u5c42\u539f\u5b50\u7c7b\uff0c\u5141\u8bb8\u5f00\u53d1\u8005\u76f4\u63a5\u5728 HTML \u4e2d\u5feb\u901f\u6784\u5efa\u7528\u6237\u754c\u9762\uff0c\u800c\u65e0\u9700\u7f16\u5199\u81ea\u5b9a\u4e49 CSS\u3002\u5b83\u98a0\u8986\u4e86\u4f20\u7edf CSS \u6846\u67b6\u5982 <code>Bootstrap<\/code> \u7684\u7ec4\u4ef6\u5316\u601d\u7ef4\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5176\u6838\u5fc3\u54f2\u5b66\u662f\u201c\u6548\u7528\u4f18\u5148\u201d\uff0c\u8fd9\u610f\u5473\u7740\u6837\u5f0f\u88ab\u62bd\u8c61\u4e3a\u7ec6\u7c92\u5ea6\u7684\u7c7b\uff0c\u5982 <code>.text-blue-500<\/code>\u3001<code>.p-4<\/code>\u3001<code>.flex<\/code>\u3002\u901a\u8fc7\u7ec4\u5408\u8fd9\u4e9b\u7c7b\uff0c\u53ef\u4ee5\u7075\u6d3b\u5730\u5b9e\u73b0\u4efb\u4f55\u8bbe\u8ba1\uff0c\u540c\u65f6\u901a\u8fc7 <code>purge<\/code>\uff08\u73b0\u5728\u79f0\u4e3a\u201c\u751f\u4ea7\u4f18\u5316\u201d\uff09\u79fb\u9664\u672a\u4f7f\u7528\u7684\u6837\u5f0f\uff0c\u6700\u7ec8\u751f\u6210\u6781\u5c0f\u7684 CSS \u6587\u4ef6\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6838\u5fc3\u914d\u7f6e\u4e0e\u81ea\u5b9a\u4e49<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Tailwind CSS<\/code> \u901a\u8fc7\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684 <code>tailwind.config.js<\/code> \u914d\u7f6e\u6587\u4ef6\u63d0\u4f9b\u5f3a\u5927\u7684\u5b9a\u5236\u80fd\u529b\uff0c\u8fd9\u4e5f\u662f\u5176\u6700\u6838\u5fc3\u7684\u6269\u5c55\u70b9\u3002<\/p>\n<!-- AUTO_INTERNAL_LINKS_START --><p>\u63a8\u8350\u9605\u8bfb <a href=\"https:\/\/www.likacloud.com\/ru\/knowledge\/website-building\/understanding-tailwind-css-utility-first-css-framework-core-concepts\/\">\u6df1\u5165\u7406\u89e3 Tailwind CSS \u5b9e\u7528\u4f18\u5148\u7684\u73b0\u4ee3 CSS \u6846\u67b6\u6838\u5fc3\u601d\u60f3<\/a>\u3002<\/p><!-- AUTO_INTERNAL_LINKS_END -->\n\n\n\n\n<h3 class=\"wp-block-heading\">\u5982\u4f55\u4fee\u6539\u8bbe\u8ba1\u7cfb\u7edf<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u5728\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u4e2d\u8986\u76d6\u6216\u6269\u5c55\u4e3b\u9898\u3001\u63d2\u4ef6\u3001\u53d8\u4f53\u7b49\u3002\u4f8b\u5982\uff0c\u81ea\u5b9a\u4e49\u54c1\u724c\u8272\u3001\u95f4\u8ddd\u6bd4\u4f8b\u6216\u65ad\u70b9\u7cfb\u7edf\u975e\u5e38\u76f4\u63a5\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b9a\u4e49\u81ea\u5b9a\u4e49\u989c\u8272\u548c\u5b57\u4f53\u7684\u914d\u7f6e\u793a\u4f8b\uff1a<\/p>\n<!-- AUTO_SYNCED_PATTERN_INSERT_START -->\n<div class=\"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6 mb-8 md:mb-10 mt-10\"> \r\n\t<!-- \u91cd\u590d\u5668\u5faa\u73af\u5f00\u59cb -->\r\n\t\t\r\n\t<!-- \u5546\u5bb6\u5361\u7247 -->\r\n\t<div class=\"bg-white dark:bg-gray-750 rounded-lg overflow-hidden shadow-md flex gap-1 flex-col     justify-between\" data-link=\"https:\/\/www.likacloud.com\/ko\/tolink\/wordpress-com-ai-website-builder\/\">\r\n\t\t<div class=\"flex items-start justify-between\"> \r\n\t\t\t<!-- \u5546\u5bb6logo -->\r\n\t\t\t<div class=\"w-16 h-16 bg-blue-200 dark:bg-blue-500\/30 flex items-center justify-center flex-shrink-0 p-3\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/www.likacloud.com\/wp-content\/uploads\/2026\/01\/20260107032104.svg\" alt=\"WordPress.com \u7f51\u7ad9\u5efa\u8bbe\u52a9\u624b\" class=\"w-12 object-contain !dark-filter08\" title=\"\">\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t<\/div>\r\n\t\t\t\r\n\t\t\t<!-- \u5546\u5bb6\u4fe1\u606f -->\r\n\t\t\t<div class=\"px-4 pt-2 flex-grow\">\r\n\t\t\t\t<div class=\"flex justify-between items-start mb-2\">\r\n\t\t\t\t\t<strong class=\"text-xl font-bold\">WordPress.com \u7f51\u7ad9\u5efa\u8bbe\u52a9\u624b<\/strong>\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t<\/div>\r\n\t\t\t\t<span class=\"text-gray-500 dark:text-gray-300 !text-sm p-4 pb-0\">99.999% \u53ef\u7528\u6027+\u8de8\u533a\u5bb9\u707e\uff0c\u5168\u592924\u5c0f\u65f6\u652f\u6301\uff0c\u8d2d\u4e70\u535a\u5ba2\u5957\u9910\u514d\u8d39\u4f7f\u7528AI\u6784\u5efa\u7f51\u7ad9<\/span>\r\n\t\t\t\t<div class=\"flex flex-col gap-4 md:gap-6 justify-between p-4\"> \r\n\t\t\t<!-- \u6807\u7b7e -->\r\n\t\t\t\t\t\t\r\n\t\t\t<!-- \u6d3b\u52a8\u548c\u94fe\u63a5 --> \r\n\t\t\t<div class=\"flex justify-between items-center gap-3 flex-col\">\r\n\t\t\t\t\t\t\t\t<div class=\"text-gray-500 dark:text-gray-300 !text-sm line-clamp-1\">\u514d\u8d39\u57df\u540d\u4e00\u5e74<\/div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.likacloud.com\/ko\/tolink\/wordpress-com-ai-website-builder\/\" class=\"flex justify-end font-bold !text-lg !text-blue-600 dark:!text-blue-500\">\u8bbf\u95eeWordPress.com \u7f51\u7ad9\u5efa\u8bbe\u52a9\u624b \u2192<\/a>\r\n\t\t\t\t\t\t\t<\/div> \r\n\t\t<\/div>\r\n\t<\/div>\r\n\t\t\r\n\t<!-- \u5546\u5bb6\u5361\u7247 -->\r\n\t<div class=\"bg-white dark:bg-gray-750 rounded-lg overflow-hidden shadow-md flex gap-1 flex-col     justify-between\" data-link=\"https:\/\/www.likacloud.com\/ko\/tolink\/ultahost-website-builder\/\">\r\n\t\t<div class=\"flex items-start justify-between\"> \r\n\t\t\t<!-- \u5546\u5bb6logo -->\r\n\t\t\t<div class=\"w-16 h-16 bg-blue-200 dark:bg-blue-500\/30 flex items-center justify-center flex-shrink-0 p-3\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/www.likacloud.com\/wp-content\/uploads\/2025\/12\/20251227023708.webp\" alt=\"UltaHost \u7f51\u7ad9\u5efa\u8bbe\u52a9\u624b\" class=\"w-12 object-contain !dark-filter08\" title=\"\">\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t<\/div>\r\n\t\t\t\r\n\t\t\t<!-- \u5546\u5bb6\u4fe1\u606f -->\r\n\t\t\t<div class=\"px-4 pt-2 flex-grow\">\r\n\t\t\t\t<div class=\"flex justify-between items-start mb-2\">\r\n\t\t\t\t\t<strong class=\"text-xl font-bold\">UltaHost \u7f51\u7ad9\u5efa\u8bbe\u52a9\u624b<\/strong>\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t<\/div>\r\n\t\t\t\t<span class=\"text-gray-500 dark:text-gray-300 !text-sm p-4 pb-0\">900+\u514d\u8d39\u3001\u53ef\u5b9a\u5236\u7684\u6a21\u677f\uff0c\u83b7\u5f97\u4f18\u5316\u7f51\u7ad9\u641c\u7d22\u66dd\u5149\u6240\u9700\u7684 SEO \u80fd\u529b<\/span>\r\n\t\t\t\t<div class=\"flex flex-col gap-4 md:gap-6 justify-between p-4\"> \r\n\t\t\t<!-- \u6807\u7b7e -->\r\n\t\t\t\t\t\t\r\n\t\t\t<!-- \u6d3b\u52a8\u548c\u94fe\u63a5 --> \r\n\t\t\t<div class=\"flex justify-between items-center gap-3 flex-col\">\r\n\t\t\t\t\t\t\t\t<div class=\"text-gray-500 dark:text-gray-300 !text-sm line-clamp-1\">\u4f18\u60e0 40%<\/div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.likacloud.com\/ko\/tolink\/ultahost-website-builder\/\" class=\"flex justify-end font-bold !text-lg !text-blue-600 dark:!text-blue-500\">\u8bbf\u95eeUltaHost \u7f51\u7ad9\u5efa\u8bbe\u52a9\u624b \u2192<\/a>\r\n\t\t\t\t\t\t\t<\/div> \r\n\t\t<\/div>\r\n\t<\/div>\r\n\t\t<!-- \u91cd\u590d\u5668\u5faa\u73af\u7ed3\u675f -->\r\n<\/div>\r\n\r\n\r\n\n<!-- AUTO_SYNCED_PATTERN_INSERT_END -->\n\n\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-javascript\">\/\/ tailwind.config.js\nmodule.exports = {\n  theme: {\n    extend: {\n      colors: {\n        &#039;brand-primary&#039;: &#039;#1d4ed8&#039;,\n        &#039;brand-secondary&#039;: &#039;#7e22ce&#039;,\n      },\n      fontFamily: {\n        &#039;sans&#039;: [&#039;Inter var&#039;, &#039;system-ui&#039;, &#039;sans-serif&#039;],\n      },\n    },\n  },\n  plugins: [],\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b8c\u6210\u914d\u7f6e\u540e\uff0c\u53ef\u4ee5\u5728\u6a21\u677f\u4e2d\u76f4\u63a5\u4f7f\u7528\u65b0\u751f\u6210\u7684\u7c7b\uff0c\u5982 <code>bg-brand-primary<\/code> \u548c <code>font-sans<\/code>\u3002\u901a\u8fc7 <code>extend<\/code> \u5173\u952e\u5b57\u6dfb\u52a0\u7684\u503c\uff0c\u4f1a\u4e0e Tailwind \u9ed8\u8ba4\u4e3b\u9898\u5408\u5e76\u800c\u4e0d\u4f1a\u8986\u76d6\uff0c\u786e\u4fdd\u4e86\u539f\u6709\u5de5\u5177\u7c7b\u7684\u53ef\u7528\u6027\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e86\u89e3\u63d2\u4ef6\u751f\u6001<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Tailwind CSS<\/code> \u7684\u5f3a\u5927\u751f\u6001\u4f53\u73b0\u5728\u5176\u63d2\u4ef6\u7cfb\u7edf\u4e0a\u3002\u901a\u8fc7\u52a0\u8f7d\u5b98\u65b9\u6216\u793e\u533a\u63d2\u4ef6\uff0c\u53ef\u4ee5\u5c06\u65b0\u7684\u529f\u80fd\u7c7b\u6ce8\u5165\u5230\u60a8\u7684\u9879\u76ee\u4e2d\u3002\u4f8b\u5982\uff0c\u5b98\u65b9\u63d2\u4ef6 <code>@tailwindcss\/forms<\/code> \u548c <code>@tailwindcss\/typography<\/code> \u80fd\u6781\u5927\u5730\u63d0\u5347\u8868\u5355\u548c\u6392\u7248\u6837\u5f0f\u7684\u5f00\u53d1\u6548\u7387\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-javascript\">\/\/ tailwind.config.js\nconst plugin = require(&#039;tailwindcss\/plugin&#039;)\n\nmodule.exports = {\n  plugins: [\n    require(&#039;@tailwindcss\/forms&#039;),\n    require(&#039;@tailwindcss\/typography&#039;),\n    plugin(function({ addUtilities }) {\n      const newUtilities = {\n        &#039;.scrollbar-hide&#039;: {\n          \/* \u81ea\u5b9a\u4e49\u6eda\u52a8\u6761\u9690\u85cf\u6837\u5f0f *\/\n        }\n      }\n      addUtilities(newUtilities)\n    })\n  ]\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f00\u53d1\u8005\u4e0d\u4ec5\u53ef\u4ee5\u4f7f\u7528\u73b0\u6210\u63d2\u4ef6\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7 <code>plugin<\/code> \u51fd\u6570\u521b\u5efa\u81ea\u5b9a\u4e49\u5de5\u5177\u7c7b\uff0c\u4ee5\u5b9e\u73b0\u9879\u76ee\u7279\u5b9a\u7684\u6837\u5f0f\u62bd\u8c61\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u54cd\u5e94\u5f0f\u8bbe\u8ba1\u4e0e\u4ea4\u4e92\u72b6\u6001<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Tailwind CSS<\/code> \u7684\u54cd\u5e94\u5f0f\u8bbe\u8ba1\u9075\u5faa\u79fb\u52a8\u4f18\u5148\u7684\u539f\u5219\u3002\u901a\u8fc7\u5185\u7f6e\u7684\u65ad\u70b9\u524d\u7f00\uff0c\u5982 <code>sm:<\/code>\u3001<code>md:<\/code>\u3001<code>lg:<\/code>\u3001<code>xl:<\/code>\u3001<code>2xl:<\/code>\uff0c\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u9002\u914d\u4e0d\u540c\u5c4f\u5e55\u5c3a\u5bf8\u7684\u754c\u9762\u3002\u8fd9\u4e9b\u65ad\u70b9\u5bf9\u5e94\u7279\u5b9a\u7684 <code>min-width<\/code> \u5a92\u4f53\u67e5\u8be2\u3002<\/p>\n<!-- AUTO_INTERNAL_LINKS_START --><p>\u63a8\u8350\u9605\u8bfb <a href=\"https:\/\/www.likacloud.com\/ru\/knowledge\/website-building\/tailwind-css-complete-beginners-guide-modern-responsive-web-design\/\">Tailwind CSS \u6784\u5efa\u73b0\u4ee3\u54cd\u5e94\u5f0f\u7f51\u9875\u7684\u5b8c\u6574\u5165\u95e8\u6307\u5357<\/a>\u3002<\/p><!-- AUTO_INTERNAL_LINKS_END -->\n\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9e\u73b0\u54cd\u5e94\u5f0f\u5e03\u5c40<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6784\u5efa\u54cd\u5e94\u5f0f\u5e03\u5c40\u65f6\uff0c\u901a\u5e38\u4ece\u79fb\u52a8\u7aef\u6837\u5f0f\u5f00\u59cb\uff0c\u7136\u540e\u5728\u5927\u65ad\u70b9\u5904\u8fdb\u884c\u8986\u76d6\u3002\u4f8b\u5982\uff0c\u4e00\u4e2a\u5728\u79fb\u52a8\u7aef\u5782\u76f4\u5806\u53e0\uff0c\u5728\u4e2d\u7b49\u5c4f\u5e55\u4ee5\u4e0a\u53d8\u4e3a\u6c34\u5e73\u6392\u5217\u7684\u5e03\u5c40\u53ef\u4ee5\u5982\u4e0b\u5b9e\u73b0\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-html\">&lt;div class=&quot;flex flex-col md:flex-row&quot;&gt;\n  &lt;div class=&quot;p-4 md:w-1\/3&quot;&gt;\u4fa7\u8fb9\u680f&lt;\/div&gt;\n  &lt;div class=&quot;p-4 md:w-2\/3&quot;&gt;\u4e3b\u5185\u5bb9\u533a&lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee3\u7801\u4e2d\uff0c<code>flex-col<\/code> \u662f\u9ed8\u8ba4\u6837\u5f0f\uff0c\u5f53\u5c4f\u5e55\u5bbd\u5ea6\u8fbe\u5230 <code>md<\/code> \u65ad\u70b9\uff08768px\uff09\u65f6\uff0c\u4f1a\u88ab <code>md:flex-row<\/code> \u548c <code>md:w-1\/3<\/code> \u7b49\u6837\u5f0f\u8986\u76d6\u3002\u8fd9\u79cd\u663e\u5f0f\u7684\u58f0\u660e\u65b9\u5f0f\u4f7f\u6837\u5f0f\u5728\u4e0d\u540c\u5c4f\u5e55\u4e0b\u7684\u8868\u73b0\u4e00\u76ee\u4e86\u7136\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7ba1\u7406\u60ac\u505c\u7126\u70b9\u72b6\u6001<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Tailwind CSS<\/code> \u4f7f\u7528\u72b6\u6001\u53d8\u4f53\u524d\u7f00\u6765\u7ba1\u7406\u5143\u7d20\u7684\u4ea4\u4e92\u72b6\u6001\uff0c\u4f8b\u5982\u60ac\u505c (<code>hover:<\/code>)\u3001\u805a\u7126 (<code>focus:<\/code>)\u3001\u6d3b\u52a8 (<code>active:<\/code>) \u7b49\u3002\u8fd9\u4f7f\u5f97\u4e3a\u4ea4\u4e92\u5143\u7d20\u6dfb\u52a0\u6837\u5f0f\u53d8\u5f97\u975e\u5e38\u76f4\u89c2\u548c\u96c6\u4e2d\u3002<\/p>\n<!-- AUTO_SYNCED_PATTERN_INSERT_START -->\n\n  <div class=\"flex justify-between items-center flex-col lg:flex-row xl:flex-col 2xl:flex-row gap-6 sm:gap-8 rounded-lg border border-gray-200 dark:border-gray-700 p-4 mb-8 lg:mb-10 sm:p-6 bg-white dark:bg-gray-750 shadow-md transition-colors duration-300\"\n         data-link=\"https:\/\/www.likacloud.com\/ko\/tolink\/bluehost-wordpress-hosting\/\">\n\n      <div class=\"flex flex-col gap-3 gap-4 sm:gap-6 w-full\">\n        <strong class=\"text-2xl font-semibold text-gray-900 dark:text-gray-200\">Bluehost\u5efa\u7ad9\u52a9\u624b<\/strong>\n        <div class=\"text-gray-600 dark:text-gray-300 word-word\">\u63d0\u4f9b AI \u7f51\u7ad9\u521b\u5efa\u5de5\u5177\uff0c24\/7 \u5728\u7ebf\u804a\u5929\u4e0e\u7535\u8bdd\u652f\u6301\uff0c\u4e00\u5e74\u514d\u8d39\u57df\u540d\uff0c\u514d\u8d39CDN\uff0c99.99% \u6b63\u5e38\u8fd0\u884c\u65f6\u95f4 SLA<\/div>\n      <\/div>\n\n      <div class=\"flex items-center flex-col md:flex-row lg:flex-col xl:flex-row 2xl:flex-col gap-6 shrink-0\">\n                  <a href=\"https:\/\/www.likacloud.com\/ko\/tolink\/bluehost-wordpress-hosting\/\">\n                          <!-- \u53ea\u6709\u4e00\u4e2a\u53ef\u7528 icon\uff08\u6216\u591c\u95f4\u56de\u9000\uff09\uff0c\u4e24\u79cd\u6a21\u5f0f\u5171\u7528 -->\n              <img decoding=\"async\" src=\"https:\/\/www.likacloud.com\/wp-content\/uploads\/2025\/12\/20251231095441.svg\" alt=\"\u5efa\u7ad9\u52a9\u624b LOGO\" class=\"content-promotion-card-icon h-9 min-h-9\" title=\"\">\n                      <\/a>\n          \n        <a href=\"https:\/\/www.likacloud.com\/ko\/tolink\/bluehost-wordpress-hosting\/\"\n           class=\"bg-blue-500 w-full md:w-auto lg:w-full xl:w-auto 2xl:w-full text-center !text-white dark:!text-gray-200 !px-5 !py-1.5 rounded-full hover:bg-blue-600 transition-colors\">\n          \u8bbf\u95eeBluehost        <\/a>\n      <\/div>\n    <\/div>\n\n    \n<!-- AUTO_SYNCED_PATTERN_INSERT_END -->\n\n\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-html\">&lt;button class=&quot;bg-blue-500 hover:bg-blue-700 focus:ring-2 focus:ring-blue-300 text-white font-bold py-2 px-4 rounded transition duration-150&quot;&gt;\n  \u70b9\u51fb\u6211\n&lt;\/button&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u6bb5\u4ee3\u7801\u5b9a\u4e49\u4e86\u6309\u94ae\u7684\u57fa\u7840\u6837\u5f0f\uff0c\u5e76\u5728\u60ac\u505c\u65f6\u52a0\u6df1\u80cc\u666f\u8272\uff0c\u5728\u83b7\u5f97\u7126\u70b9\u65f6\u6dfb\u52a0\u4e00\u4e2a\u84dd\u8272\u7684\u5149\u73af\u6548\u679c\u3002\u7ed3\u5408 <code>transition<\/code> \u548c <code>duration-*<\/code> \u5de5\u5177\u7c7b\uff0c\u53ef\u4ee5\u8f7b\u677e\u4e3a\u72b6\u6001\u53d8\u5316\u6dfb\u52a0\u5e73\u6ed1\u7684\u52a8\u753b\u8fc7\u6e21\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u9ad8\u7ea7\u7279\u6027\u4e0e\u6027\u80fd\u4f18\u5316<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u9664\u4e86\u57fa\u7840\u4f7f\u7528\uff0c<code>Tailwind CSS<\/code> \u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u9ad8\u7ea7\u7279\u6027\u6765\u63d0\u5347\u5f00\u53d1\u4f53\u9a8c\u548c\u9879\u76ee\u6027\u80fd\u3002\u5b66\u4f1a\u8fd9\u4e9b\u662f\u6210\u4e3a Tailwind \u9ad8\u7ea7\u7528\u6237\u7684\u5173\u952e\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u52a8\u6001\u503c\u4e0e\u51fd\u6570\u7684\u5e94\u7528<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6709\u65f6\u76f4\u63a5\u7684\u5de5\u5177\u7c7b\u65e0\u6cd5\u6ee1\u8db3\u9700\u6c42\uff0c\u4f8b\u5982\u9700\u8981\u4e00\u4e2a\u975e\u4e3b\u9898\u5b9a\u4e49\u8303\u56f4\u5185\u7684\u50cf\u7d20\u503c\u3002\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u65b9\u62ec\u53f7\u8bed\u6cd5\u52a8\u6001\u521b\u5efa\u4efb\u610f\u503c\uff1a<code>top-[117px]<\/code>\u3001<code>bg-[#bada55]<\/code>\u3002\u8fd9\u63d0\u4f9b\u4e86\u6781\u9ad8\u7684\u7075\u6d3b\u6027\u3002<\/p>\n<!-- AUTO_INTERNAL_LINKS_START --><p>\u63a8\u8350\u9605\u8bfb <a href=\"https:\/\/www.likacloud.com\/ru\/knowledge\/website-building\/master-tailwind-css-complete-guide-from-basics-to-practice\/\">\u638c\u63e1 Tailwind CSS\uff1a\u4ece\u57fa\u7840\u5230\u5b9e\u8df5\u7684\u73b0\u4ee3\u524d\u7aef CSS \u6846\u67b6\u5b8c\u5168\u6307\u5357<\/a>\u3002<\/p><!-- AUTO_INTERNAL_LINKS_END -->\n\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u5916\uff0c<code>theme()<\/code> \u51fd\u6570\u5141\u8bb8\u5728\u81ea\u5b9a\u4e49 CSS \u4e2d\u8bbf\u95ee\u4e3b\u9898\u914d\u7f6e\u7684\u503c\u3002\u8fd9\u5728\u9700\u8981\u7f16\u5199\u81ea\u5b9a\u4e49\u6837\u5f0f\u65f6\u975e\u5e38\u6709\u7528\uff0c\u786e\u4fdd\u4e86\u503c\u7684\u4e00\u81f4\u6027\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-css\">\/* \u5728\u81ea\u5b9a\u4e49 CSS \u6587\u4ef6\u4e2d *\/\n.custom-card {\n  box-shadow: 0 4px 6px theme(&#039;colors.gray.300&#039;);\n  max-width: theme(&#039;screens.lg&#039;);\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u751f\u4ea7\u73af\u5883\u7684\u4f18\u5316\u7b56\u7565<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u662f <code>Tailwind CSS<\/code> \u5728\u6027\u80fd\u4e0a\u7684\u6740\u624b\u950f\u3002\u901a\u8fc7\u5728\u751f\u4ea7\u6784\u5efa\u65f6\u904d\u5386\u9879\u76ee\u6587\u4ef6\uff0c\u5b83\u53ef\u4ee5\u667a\u80fd\u5730\u201c\u6447\u6811\u201d\uff0c\u5220\u9664\u6240\u6709\u672a\u4f7f\u7528\u7684\u6837\u5f0f\u7c7b\u3002\u8fd9\u4f9d\u8d56\u4e8e\u914d\u7f6e\u6587\u4ef6\u4e2d <code>content<\/code> \u5c5e\u6027\u7684\u6b63\u786e\u8bbe\u7f6e\uff0c\u5b83\u6307\u5b9a\u4e86 Tailwind \u9700\u8981\u626b\u63cf\u7684\u6587\u4ef6\u8def\u5f84\u3002<\/p>\n<!-- AUTO_SYNCED_PATTERN_INSERT_START -->\n\n  <div class=\"flex justify-between items-center flex-col lg:flex-row xl:flex-col 2xl:flex-row gap-6 sm:gap-8 rounded-lg border border-gray-200 dark:border-gray-700 p-4 mb-8 lg:mb-10 sm:p-6 bg-white dark:bg-gray-750 shadow-md transition-colors duration-300\"\n         data-link=\"https:\/\/www.likacloud.com\/ko\/tolink\/hosting-com-sitebuilder\/\">\n\n      <div class=\"flex flex-col gap-3 gap-4 sm:gap-6 w-full\">\n        <strong class=\"text-2xl font-semibold text-gray-900 dark:text-gray-200\">hosting.com<\/strong>\n        <div class=\"text-gray-600 dark:text-gray-300 word-word\">\u514d\u8d39SSL\u3001Cloudflare CDN\u3001WAF\uff0c40+\u5168\u7403\u673a\u623f\u53ef\u9009\uff0c\u5c31\u8fd1\u66f4\u4f4e\u5ef6\u8fdf\uff0c 24\/7\/365 \u670d\u52a1\u652f\u6301\uff0c\u73b0\u5728\u53ef\u4ee5\u7701\u4e0b\u9ad8\u8fbe 67%\u7684\u8d39\u7528\uff0c\u652f\u6301 AI \u6784\u5efa\u548c SEO \u4f18\u5316<\/div>\n      <\/div>\n\n      <div class=\"flex items-center flex-col md:flex-row lg:flex-col xl:flex-row 2xl:flex-col gap-6 shrink-0\">\n                  <a href=\"https:\/\/www.likacloud.com\/ko\/tolink\/hosting-com-sitebuilder\/\">\n                          <!-- \u767d\u5929 -->\n              <img decoding=\"async\" src=\"https:\/\/www.likacloud.com\/wp-content\/uploads\/2025\/09\/20250901222940.svg\" alt=\" LOGO\" class=\"content-promotion-card-icon h-9 min-h-9 dark:hidden\" title=\"\">\n              <!-- \u591c\u95f4 -->\n              <img decoding=\"async\" src=\"https:\/\/www.likacloud.com\/wp-content\/uploads\/2025\/12\/20251228220957.webp\" alt=\" LOGO\" class=\"content-promotion-card-icon h-9 min-h-9 hidden dark:block\" title=\"\">\n                      <\/a>\n          \n        <a href=\"https:\/\/www.likacloud.com\/ko\/tolink\/hosting-com-sitebuilder\/\"\n           class=\"bg-blue-500 w-full md:w-auto lg:w-full xl:w-auto 2xl:w-full text-center !text-white dark:!text-gray-200 !px-5 !py-1.5 rounded-full hover:bg-blue-600 transition-colors\">\n          \u8bbf\u95eehosting.com        <\/a>\n      <\/div>\n    <\/div>\n\n    \n<!-- AUTO_SYNCED_PATTERN_INSERT_END -->\n\n\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-javascript\">\/\/ tailwind.config.js\nmodule.exports = {\n  content: [\n    &#039;.\/src\/**\/*.{html,js,jsx,ts,tsx,vue}&#039;,\n  ],\n  \/\/ ... \u5176\u4ed6\u914d\u7f6e\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u786e\u4fdd <code>content<\/code> \u8def\u5f84\u5305\u542b\u6240\u6709\u4f7f\u7528\u4e86 Tailwind \u7c7b\u7684\u6a21\u677f\u6587\u4ef6\u3002\u5728\u6784\u5efa\u751f\u4ea7\u7248\u672c\u65f6\uff0c\u90a3\u4e9b\u4ece\u672a\u5728\u6a21\u677f\u4e2d\u51fa\u73b0\u7684\u7c7b\uff0c\u5982 <code>.w-64<\/code> \u5982\u679c\u4e0d\u88ab\u4f7f\u7528\uff0c\u5c06\u4e0d\u4f1a\u51fa\u73b0\u5728\u6700\u7ec8\u7684 CSS \u6587\u4ef6\u4e2d\uff0c\u4ece\u800c\u751f\u6210\u4e00\u4e2a\u6781\u5c0f\u7684\u6837\u5f0f\u8868\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e0e\u524d\u7aef\u6846\u67b6\u7684\u7ed3\u5408\u5b9e\u8df5<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Tailwind CSS<\/code> \u53ef\u4ee5\u65e0\u7f1d\u96c6\u6210\u5230\u73b0\u4ee3\u524d\u7aef\u6846\u67b6\u4e2d\uff0c\u5176\u5de5\u4f5c\u6d41\u548c\u6548\u7528\u4f18\u5148\u7684\u7406\u5ff5\u4e0e\u7ec4\u4ef6\u5316\u5f00\u53d1\u9ad8\u5ea6\u5951\u5408\u3002\u5728\u4e0d\u540c\u6846\u67b6\u4e2d\uff0c\u53ef\u80fd\u4f1a\u6709\u4e00\u4e9b\u7279\u5b9a\u4e8e\u6846\u67b6\u7684\u6027\u80fd\u6216\u7ec4\u7ec7\u5b9e\u8df5\u9700\u8981\u5173\u6ce8\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5728 React \u6216 Vue \u9879\u76ee\u4e2d\u7684\u5b9e\u8df5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 React \u6216 Vue \u5355\u6587\u4ef6\u7ec4\u4ef6\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728 JSX \u6216\u6a21\u677f\u90e8\u5206\u4f7f\u7528 Tailwind \u7c7b\u3002\u4e3a\u4e86\u4fdd\u6301\u6a21\u677f\u7684\u6574\u6d01\uff0c\u5bf9\u4e8e\u7279\u522b\u957f\u7684\u7c7b\u540d\u5217\u8868\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u8f85\u52a9\u51fd\u6570\u6216\u5de5\u5177\u8fdb\u884c\u7ec4\u7ec7\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 Vue \u5355\u6587\u4ef6\u7ec4\u4ef6\u4e2d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-html\">&lt;template&gt;\n  &lt;div :class=&quot;`p-4 ${isActive ? &#039;bg-blue-500&#039; : &#039;bg-gray-200&#039;}`&quot;&gt;\n    Vue \u7ec4\u4ef6\n  &lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e8e\u6761\u4ef6\u7c7b\u540d\uff0c\u53ef\u4ee5\u914d\u5408\u4f7f\u7528\u50cf <code>classnames<\/code>\uff08React\uff09\u6216 <code>clsx<\/code> \u8fd9\u6837\u7684\u5de5\u5177\u5e93\uff0c\u6216\u8005\u5229\u7528\u6846\u67b6\u7684\u5185\u7f6e\u529f\u80fd\uff08\u5982 Vue \u7684\u5bf9\u8c61\/\u6570\u7ec4\u8bed\u6cd5\uff09\uff0c\u8ba9\u903b\u8f91\u66f4\u6e05\u6670\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u63d0\u53d6\u7ec4\u4ef6\u4e0e\u907f\u514d\u91cd\u590d<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u867d\u7136 Tailwind \u9f13\u52b1\u5de5\u5177\u7c7b\u7684\u76f4\u63a5\u4f7f\u7528\uff0c\u4f46\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\uff0c\u91cd\u590d\u7684\u7c7b\u7ec4\u5408\uff08\u4f8b\u5982\u4e00\u4e2a\u7279\u5b9a\u6837\u5f0f\u7684\u6309\u94ae\uff09\u4f1a\u51fa\u73b0\u5728\u591a\u5904\u3002\u4e3a\u4e86\u907f\u514d\u91cd\u590d\u548c\u7ef4\u62a4\u56f0\u96be\uff0c\u6700\u4f73\u5b9e\u8df5\u662f\u5c06\u5176\u63d0\u53d6\u4e3a\u6846\u67b6\u7684\u7ec4\u4ef6\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u5982\uff0c\u5728 React \u4e2d\u521b\u5efa\u4e00\u4e2a <code>Button<\/code> \u7ec4\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-jsx\">\/\/ Button.jsx\nfunction Button({ children, primary }) {\n  const baseClasses = &quot;font-bold py-2 px-4 rounded transition duration-150&quot;;\n  const primaryClasses = &quot;bg-blue-500 hover:bg-blue-700 text-white&quot;;\n  const secondaryClasses = &quot;bg-gray-300 hover:bg-gray-400 text-black&quot;;\n\n  return (\n    &lt;button className={`${baseClasses} ${primary ? primaryClasses : secondaryClasses}`}&gt;\n      {children}\n    &lt;\/button&gt;\n  );\n}\n\/\/ \u4f7f\u7528\n&lt;Button primary&gt;\u63d0\u4ea4&lt;\/Button&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u6837\u65e2\u4fdd\u7559\u4e86 Tailwind \u7684\u7075\u6d3b\u6027\uff0c\u53c8\u83b7\u5f97\u4e86\u62bd\u8c61\u7ec4\u4ef6\u7684\u53ef\u7ef4\u62a4\u6027\uff0c\u662f\u5e73\u8861\u7684\u6700\u4f73\u70b9\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u603b\u7ed3<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Tailwind CSS<\/code> \u901a\u8fc7\u5176\u6548\u7528\u4f18\u5148\u3001\u9ad8\u5ea6\u53ef\u5b9a\u5236\u548c\u6027\u80fd\u81f3\u4e0a\u7684\u8bbe\u8ba1\uff0c\u4e3a\u73b0\u4ee3 Web \u5f00\u53d1\u5e26\u6765\u4e86\u65b0\u7684\u8303\u5f0f\u3002\u5b83\u8981\u6c42\u5f00\u53d1\u8005\u4ece\u539f\u5b50\u5316\u6837\u5f0f\u7684\u89c6\u89d2\u601d\u8003\u754c\u9762\u6784\u5efa\uff0c\u8fd9\u521d\u671f\u53ef\u80fd\u9700\u8981\u601d\u7ef4\u8f6c\u53d8\uff0c\u4f46\u4e00\u65e6\u638c\u63e1\uff0c\u4fbf\u80fd\u6781\u5927\u5730\u52a0\u901f\u5f00\u53d1\u548c\u8fed\u4ee3\u8fc7\u7a0b\u3002\u5176\u6838\u5fc3\u5728\u4e8e\u5f3a\u5927\u7684\u914d\u7f6e\u7cfb\u7edf\u3001\u9075\u5faa\u79fb\u52a8\u4f18\u5148\u7684\u54cd\u5e94\u5f0f\u8bbe\u8ba1\u3001\u4e30\u5bcc\u7684\u4ea4\u4e92\u72b6\u6001\u53d8\u4f53\uff0c\u4ee5\u53ca\u4e0e\u524d\u7aef\u6846\u67b6\u7684\u7cbe\u5999\u7ed3\u5408\u3002\u901a\u8fc7\u6b63\u786e\u7684\u5b9e\u8df5\uff0c\u5982\u63d0\u53d6\u53ef\u590d\u7528\u7ec4\u4ef6\u548c\u914d\u7f6e\u751f\u4ea7\u4f18\u5316\uff0c\u53ef\u4ee5\u6784\u5efa\u51fa\u65e2\u5feb\u901f\u3001\u7075\u6d3b\u53c8\u6613\u4e8e\u7ef4\u62a4\u7684\u6837\u5f0f\u7cfb\u7edf\u3002Tailwind \u4e0d\u662f\u4e00\u4e2a\u7b80\u5355\u7684 CSS \u5e93\uff0c\u800c\u662f\u4e00\u4e2a\u5b8c\u6574\u7684 CSS \u5de5\u4f5c\u6d41\u5f15\u64ce\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ \u5e38\u89c1\u95ee\u9898<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Tailwind CSS \u751f\u6210\u7684 HTML \u770b\u8d77\u6765\u975e\u5e38\u6df7\u4e71\uff0c\u662f\u5426\u6709\u529e\u6cd5\u6539\u5584\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u662f\u7684\uff0c\u5bf9\u4e8e\u590d\u6742\u7ec4\u4ef6\uff0c\u5197\u957f\u7684\u7c7b\u540d\u5217\u8868\u786e\u5b9e\u4f1a\u5f71\u54cd HTML \u7684\u53ef\u8bfb\u6027\u3002\u6709\u51e0\u79cd\u7b56\u7565\u53ef\u4ee5\u6539\u5584\uff1a\u9996\u5148\uff0c\u53ef\u4ee5\u5c06\u91cd\u590d\u7684\u7c7b\u7ec4\u5408\u63d0\u53d6\u4e3a\u53ef\u590d\u7528\u7684\u6846\u67b6\u7ec4\u4ef6\uff08\u5982 React\u3001Vue \u7ec4\u4ef6\uff09\u3002\u5176\u6b21\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>@apply<\/code> \u6307\u4ee4\u5728 CSS \u4e2d\u5c06\u5e38\u7528\u5de5\u5177\u7c7b\u63d0\u53d6\u4e3a\u65b0\u7684 CSS \u7c7b\uff0c\u4f46\u9700\u8c28\u614e\u4f7f\u7528\u4ee5\u907f\u514d\u5931\u53bb Tailwind \u7684\u90e8\u5206\u4f18\u52bf\u3002\u6700\u540e\uff0c\u826f\u597d\u7684\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177\u548c IDE \u63d2\u4ef6\uff08\u5982 Prettier \u7684 Tailwind \u63d2\u4ef6\uff09\u53ef\u4ee5\u5c06\u7c7b\u540d\u6309\u4e00\u5b9a\u903b\u8f91\u6392\u5e8f\u548c\u5206\u7ec4\uff0c\u663e\u8457\u63d0\u5347\u53ef\u8bfb\u6027\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Tailwind CSS \u4f1a\u589e\u52a0 CSS \u6587\u4ef6\u4f53\u79ef\u5417\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u5f00\u53d1\u73af\u5883\u4e2d\uff0c\u662f\u7684\uff0c\u56e0\u4e3a\u5305\u542b\u4e86\u6240\u6709\u53ef\u80fd\u7684\u5de5\u5177\u7c7b\uff0c\u6587\u4ef6\u4f1a\u5f88\u5927\uff08\u53ef\u8fbe\u6570 MB\uff09\u3002\u4f46\u8fd9\u6b63\u662f\u5176\u5a01\u529b\u6240\u5728\uff0c\u56e0\u4e3a\u5b83\u5141\u8bb8\u60a8\u81ea\u7531\u5c1d\u8bd5\u4efb\u4f55\u6837\u5f0f\u800c\u65e0\u9700\u79bb\u5f00 HTML\u3002\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u901a\u8fc7\u6b63\u786e\u914d\u7f6e <code>content<\/code> \u8def\u5f84\u5e76\u4f7f\u7528\u5176\u5185\u7f6e\u7684 PurgeCSS \u529f\u80fd\uff08\u6216 JIT \u5f15\u64ce\u7684\u81ea\u52a8\u4f18\u5316\uff09\uff0c\u6240\u6709\u672a\u5728\u9879\u76ee\u4e2d\u4f7f\u7528\u7684\u6837\u5f0f\u90fd\u4f1a\u88ab\u5f7b\u5e95\u79fb\u9664\uff0c\u6700\u7ec8\u751f\u6210\u7684 CSS \u901a\u5e38\u53ea\u6709\u51e0 KB \u5230\u51e0\u5341 KB\uff0c\u6bd4\u5176\u4ed6\u6846\u67b6\u7684 CSS \u4f53\u79ef\u8981\u5c0f\u5f97\u591a\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u662f\u5426\u53ef\u4ee5\u5728\u73b0\u6709\u7684\u9879\u76ee\u4e2d\u9010\u6b65\u5f15\u5165 Tailwind\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b8c\u5168\u53ef\u4ee5\u3002<code>Tailwind CSS<\/code> \u662f\u4e00\u4e2a PostCSS \u63d2\u4ef6\uff0c\u53ef\u4ee5\u4e0e\u5176\u4ed6 CSS \u7b56\u7565\u5171\u5b58\u3002\u60a8\u53ef\u4ee5\u4ece\u4e00\u4e2a\u7279\u5b9a\u7684\u9875\u9762\u6216\u7ec4\u4ef6\u5f00\u59cb\u4f7f\u7528 Tailwind \u7c7b\uff0c\u540c\u65f6\u4fdd\u7559\u9879\u76ee\u4e2d\u73b0\u6709\u7684\u6837\u5f0f\u8868\u3002\u53ea\u9700\u5728\u6784\u5efa\u94fe\u4e2d\u914d\u7f6e\u597d PostCSS\uff0c\u5e76\u786e\u4fdd Tailwind \u7684\u57fa\u7840\u6837\u5f0f\uff08<code>@tailwind base;<\/code>\uff09\u4e0e\u73b0\u4ee3\u6d4f\u89c8\u5668\u91cd\u7f6e\u6837\u5f0f\uff08Normalize.css\uff09\u517c\u5bb9\u5373\u53ef\u3002\u60a8\u53ef\u4ee5\u9010\u6b65\u7528 Tailwind \u6837\u5f0f\u66ff\u6362\u65e7\u6837\u5f0f\uff0c\u800c\u65e0\u9700\u8fdb\u884c\u5927\u89c4\u6a21\u7684\u7834\u574f\u6027\u91cd\u5199\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5982\u4f55\u5728\u9879\u76ee\u4e2d\u6dfb\u52a0 Tailwind \u672a\u63d0\u4f9b\u7684\u81ea\u5b9a\u4e49 CSS\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6709\u4e09\u79cd\u4e3b\u8981\u65b9\u5f0f\u3002\u7b2c\u4e00\uff0c\u6700\u7b80\u5355\u7684\u662f\u4f7f\u7528\u5185\u8054\u7684\u65b9\u62ec\u53f7\u8bed\u6cd5\uff0c\u5982 <code>bg-[#f0f0f0]<\/code>\u3002\u7b2c\u4e8c\uff0c\u60a8\u53ef\u4ee5\u5728\u4e3b CSS \u6587\u4ef6\u4e2d\u4f7f\u7528 <code>@layer<\/code> \u6307\u4ee4\uff0c\u5c06\u81ea\u5b9a\u4e49\u6837\u5f0f\u6dfb\u52a0\u5230 Tailwind \u7684\u57fa\u5e95\u5c42\uff08<code>base<\/code>\uff09\u3001\u5de5\u5177\u5c42\uff08<code>utilities<\/code>\uff09\u6216\u7ec4\u4ef6\u5c42\uff08<code>components<\/code>\uff09\uff0c\u4ee5\u4f7f\u5176\u540c\u6837\u53d7\u76ca\u4e8e Tailwind \u7684\u6811\u6447\u4f18\u5316\u3002\u7b2c\u4e09\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7 <code>tailwind.config.js<\/code> \u4e2d\u7684 <code>plugins<\/code> \u914d\u7f6e\uff0c\u4f7f\u7528 JavaScript \u52a8\u6001\u6dfb\u52a0\u81ea\u5b9a\u4e49\u5de5\u5177\u7c7b\uff0c\u8fd9\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u6837\u5f0f\u62bd\u8c61\u975e\u5e38\u6709\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc774 \uae00\uc5d0\uc11c\ub294 Tailwind CSS\uc758 \ud575\uc2ec \ucca0\ud559\uc778 \u201c\uc720\ud2f8\ub9ac\ud2f0 \ud504\ub77c\uc774\uc624\ub9ac\ud2f0(utility priority)\u201d\uc640 \uadf8 \uc791\uc5c5 \ud750\ub984\uc744 \uccb4\uacc4\uc801\uc73c\ub85c \ubd84\uc11d\ud569\ub2c8\ub2e4. \ud2b9\ud788 `tailwind.config.js` \uc124\uc815 \ud30c\uc77c\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub514\uc790\uc778 \uc2dc\uc2a4\ud15c\uc744 \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5\ud558\ub294 \ubc29\ubc95, \ud50c\ub7ec\uadf8\uc778 \uc0dd\ud0dc\uacc4\ub97c \ud65c\uc6a9\ud55c \uae30\ub2a5 \ud655\uc7a5 \ubc29\ubc95, \uadf8\ub9ac\uace0 \ubaa8\ubc14\uc77c \uc6b0\uc120 \uc6d0\uce59\uc744 \ub530\ub978 \ubc18\uc751\ud615 \ub808\uc774\uc544\uc6c3 \uad6c\ud604 \ubc29\ubc95\uc5d0 \uc911\uc810\uc744 \ub450\uc5c8\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc758 \ubaa9\uc801\uc740 \uac1c\ubc1c\uc790\ub4e4\uc774 \uc774 \uc6d0\uc790\uc801 \ud074\ub798\uc2a4 \uae30\ubc18\uc758 \ud504\ub808\uc784\uc6cc\ud06c\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \ud65c\uc6a9\ud558\uc5ec \uc720\uc5f0\ud558\uace0 \uace0\uc131\ub2a5\uc758 \uc778\ud130\ud398\uc774\uc2a4\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 \ub370 \uc788\uc2b5\ub2c8\ub2e4.<\/p>","protected":false},"author":7,"featured_media":0,"template":"","meta":{"_acf_changed":false,"footnotes":""},"tags":[2257,2256,430],"knowledge_category":[281],"class_list":["post-12376824","knowledge_post","type-knowledge_post","status-publish","hentry","tag-css-frameworks","tag-tailwind-css","tag-frontend-development","knowledge_category-website-building"],"acf":{"site_seo_keywords":"Tailwind CSS, \u6838\u5fc3\u6982\u5ff5, \u5de5\u4f5c\u6d41, \u914d\u7f6e\u5b9a\u5236, \u63d2\u4ef6\u751f\u6001, \u54cd\u5e94\u5f0f\u8bbe\u8ba1, \u79fb\u52a8\u4f18\u5148, \u539f\u5b50\u7c7bCSS\u6846\u67b6"},"_links":{"self":[{"href":"https:\/\/www.likacloud.com\/ko\/wp-json\/wp\/v2\/knowledge_posts\/12376824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.likacloud.com\/ko\/wp-json\/wp\/v2\/knowledge_posts"}],"about":[{"href":"https:\/\/www.likacloud.com\/ko\/wp-json\/wp\/v2\/types\/knowledge_post"}],"author":[{"embeddable":true,"href":"https:\/\/www.likacloud.com\/ko\/wp-json\/wp\/v2\/users\/7"}],"version-history":[{"count":0,"href":"https:\/\/www.likacloud.com\/ko\/wp-json\/wp\/v2\/knowledge_posts\/12376824\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.likacloud.com\/ko\/wp-json\/wp\/v2\/media?parent=12376824"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.likacloud.com\/ko\/wp-json\/wp\/v2\/tags?post=12376824"},{"taxonomy":"knowledge_category","embeddable":true,"href":"https:\/\/www.likacloud.com\/ko\/wp-json\/wp\/v2\/knowledge_category?post=12376824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}