让我的图像以html显示 [英] Get my image to display in html

查看:74
本文介绍了让我的图像以html显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在将我的图片显示在临时网页上时遇到了一些麻烦。当我打开本地文件时,图像显示正常,但是当我在ftp服务器中打开它时,它不会显示。本地和服务器public_html文件夹的内容相同(在文件和子文件夹中)。我认为这与为什么临时地址(http://217.199.187.250/bml-construction.com)也无法打开有关。一些帮助将不胜感激,我真的很难过。标签写成显示

< img src =images / dolphin.jpgwidth = 100 />

解决方案

< pre lang =xml>你需要使用这个
< img src = 〜/ images / dolphin.jpg width = 100 / >



< img src = / images / dolphin.jpg width = 100 / >


I'm having some trouble getting my image to display on my temp web page. When I open the local file the image displays fine, but when I open it in the ftp server it doesn't display. Both the local and the server public_html folders are identical in content (in files and sub-folders). I think it has something to do with why the temp address (http://217.199.187.250/bml-construction.com)can't open either. Some help would be appreciated, I'm truly stumped. The tag is written as displayed
<img src= "images/dolphin.jpg"width=100/>

解决方案

you need to use this
<img src = "~/images/dolphin.jpg" width="100" />

or

<img src = "/images/dolphin.jpg" width="100" />


这篇关于让我的图像以html显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆