简体   繁体   中英

Image not showing up using <img> HTML

I am building an app using Ruby on Rails and for my user page, I am having trouble generating an image on my site using image tag: <img></img>

Here's the line of code I wrote for pulling out the image:

<img class="card-img-top" src="logo.png" alt="Card image cap">

is logo.png located in root directory or it is in image folder??

 <img class="card-img-top" src="imagefoldername/logo.png" alt="Card image cap">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM