是否可以将 Bootstrap css 组件转换为 Tailwind css
Is it possible to convert Bootstrap css components to Tailwind css
我在我的网络项目中使用 Tailwind CSS 库。我想转换所有 Bootstrap CSS 组件并在我的 Web 项目中使用它们。这可能吗?
您可以自定义一些 Bootstrap 组件并在 Tailwind 项目中使用它们。这里的缺点是区分 common class styles and globally defined class styles used by components defined in the Tailwind library and the Bootstrap library. In this case, if you change the class names of the Bootstrap component you want to add externally to the project, there will be no conflict. You can check this demo 以便于发现。
手动添加一些组件的一种方法是创建一个新的 bootstrap 项目并在浏览器中打开 DevTools,以从“元素”选项卡的“样式”面板中探索 元素的样式。
我在我的网络项目中使用 Tailwind CSS 库。我想转换所有 Bootstrap CSS 组件并在我的 Web 项目中使用它们。这可能吗?
您可以自定义一些 Bootstrap 组件并在 Tailwind 项目中使用它们。这里的缺点是区分 common class styles and globally defined class styles used by components defined in the Tailwind library and the Bootstrap library. In this case, if you change the class names of the Bootstrap component you want to add externally to the project, there will be no conflict. You can check this demo 以便于发现。
手动添加一些组件的一种方法是创建一个新的 bootstrap 项目并在浏览器中打开 DevTools,以从“元素”选项卡的“样式”面板中探索