英文:
Tailwind - Border bottom color is inactive
问题
请原谅我,如果这个问题已经在其他地方存在,请告诉我。
今天是我使用React JS的第一天。我正在按照Youtube上的课程(https://www.youtube.com/watch?v=b0_Y_eU_SXI)进行学习。
一切都很顺利,直到视频的1:40:00,我无法显示头部按钮的底部颜色。
类名"text-black border-b-red-500"被其他类覆盖了。
有人能帮我修复这个问题吗?
我试图学习React JS、Tailwind和Firebase。
英文:
Forgive me if this question already exist somewhere, please let me know.
Today is my first day with React JS. I am following the course on Youtube (https://www.youtube.com/watch?v=b0_Y_eU_SXI).
Everything's fine until 1:40:00 of video, I cannot show the bottom color of the buttons on header.
And here is my browser inspect
The classes "text-black border-b-red-500" are overwrited by other classes.
Could someone please help me fix this?
I try to learn React JS, tailwind and firebase
答案1
得分: 1
我认为这与if语句有关。你可以尝试像这样更改:pathMathRoute("/") ? "text-black border-b-red-500" : "text-gray-400 border-b-transparent"
英文:
I think it’s related with if statement. You can try to change like this pathMathRoute(“/”) ? “text-black border-b-red-500” : “text-gray-400 border-b-transparent”
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论