vuetify 3文本颜色在设置BG彩色后不变
我正在尝试将 bg-color
以及 text-white
设置为简单按钮,但是一旦设置了背景颜色,我就无法在没有文本颜色的情况下更改文本颜色创建一个类并将颜色定义为!重要
<v-btn flat class="bg-pink text-white">
<v-icon color="white">mdi-email</v-icon>
<span>Click</span>
</v-btn>
以下链接显示代码结果屏幕截图
我在做什么错?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在使用Vuetify时尝试此操作
,Bootstrap类将与Vuetify类冲突。因此,您最好选择与Bootstrap类不同的Vuetify类。查看Vuetify文档以获取更多信息。
Try this
When using vuetify, bootstrap classes would conflict with vuetify classes. So you better choose vuetify classes which are of course different from bootstrap classes. Take a look at vuetify documentation for more.
这可以通过使用
bg- {color}
类来实现背景颜色和文本颜色的类,并使用text- {color}
class。这是完整的 documentation color pallete上。演示:
This can be achieved by using
bg-{color}
class for background color and text color by usingtext-{color}
class. Here is the full documentation on color pallete.Demo :
如rohìtJíndal我将版本更改为 [email&nbsp; procectioned] ,问题已解决。这可能是他们所做的众多修复程序之一。
As suggested by Rohìt Jíndal I changed the version to [email protected] and the problem was solved. Probably it was one of the many fixes they did.