简体   繁体   English

图片未显示使用<img> HTML

[英]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>我在 Rails 上使用 Ruby 构建应用程序,对于我的用户页面,我无法使用图像标签在我的网站上生成图像: <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?? logo.png 是位于根目录还是位于图像文件夹中?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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