Home » vue » I cant display backround image in vuejs and tailwindcss

I cant display backround image in vuejs and tailwindcss

Posted by: admin November 26, 2021 Leave a comment

Questions:

components code

the image dont display in background. and the same thing when i try with "bg-shoes" in tailwindcss

Answers:

Make sure that you bind the style property. And that a single curly brace is used in the syntax
<div v-bind:style="{ backgroundImage: makesure the value is a string }"></div>