可以同时使用Tailwind CSS和Bootstrap 4吗? [英] Can use both Tailwind css and Bootstrap 4 at the same time?

查看:134
本文介绍了可以同时使用Tailwind CSS和Bootstrap 4吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目当前是使用BootstrapVue组件的Vuejs(似乎使用bootstrap 4 css).

My project is currently Vuejs which use BootstrapVue components (seems to use bootstrap 4 css).

我正在尝试将Tailwind CSS用于新的自定义组件.

I am trying to use Tailwind css for new custom components.

是否可以同时使用它们?

Is it possible to use both of them at same time?

谢谢.

推荐答案

您可以使用前缀解决类冲突

You can solve classes conflict using a prefix

// tailwind.config.js
module.exports = {
  prefix: 'tw-',
}

,很可能您会遇到 normalize.css 的问题,该问题在 @tailwind base

BUT, most likely you will have a problem with normalize.css, which used in @tailwind base

这篇关于可以同时使用Tailwind CSS和Bootstrap 4吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆