@tomazi15
Posted
dont think you can import svg's using css in React, you can import svg as a component: there are some examplese here good read:
https://www.freecodecamp.org/news/how-to-import-svgs-in-react-and-vite/
Marked as helpful
@Diviner-Beibei
Posted
@tomazi15 Thank you very much for your reply, I used Tailwindcss to build this project, because I need to customize the style of Slider, but Tailwindcss does not provide such a function, so I had to put this code in the index.css file, so generated this problem
@Diviner-Beibei
Posted
@tomazi15 It's just that the file path is incorrect, I think the problem is complicated! ! ! I have solved it