加载图片时出现问题 [英] Problem loading an Image

查看:87
本文介绍了加载图片时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是PHP的新手。

我在Linux上的Apache2上运行PHP而且我有6页用于PHP。

所有PHP页面都可以正常访问数据库。


现在的问题是,我想保留一个图像(GIF或JPG或任何图像)页面但是无法保留图像。

如果在文件夹中包含了一个图像文件

Hello all,

I am newbie to PHP.
I am running PHP on Apache2 on Linux and I have some 6 pages for PHP.
All PHP pages are working fine in accessing DB.

Now the problem is, I want to keep an image(GIF or JPG or anykind of image) on the page but couldn''t keep the images.
If have included an image file in the folder

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号

推荐答案

听起来我觉得你需要对HTML如何与web一起工作有一些基本的了解用于提供页面的rowser。


如果您的图像位于服务器上的文档树中,则可以使用HTML图像标记将其放入页面中,< img url = 你的文件名在这里取代。


搜索图像标签的工作方式以及可以在标签括号中添加的各种选项。
It sounds to me like you need some basic understanding of how HTML works with a web browser to serve up a page.

If your image is within the document tree on the server, then you can place it into a page using an HTML image tag, <img url="your file name here" >.

Do a search for how an image tag works and the various options you can add with in the tag brackets.



在我看来,你需要对HTML如何使用网页浏览器提供页面的基本了解。


如果你的图像在文档中服务器上的树,然后您可以使用HTML图像标记将其放入页面中,< img url ="您的文件名在这里取代。


搜索图像标签的工作方式以及可以在标签括号中添加的各种选项。
It sounds to me like you need some basic understanding of how HTML works with a web browser to serve up a page.

If your image is within the document tree on the server, then you can place it into a page using an HTML image tag, <img url="your file name here" >.

Do a search for how an image tag works and the various options you can add with in the tag brackets.



你好,


非常感谢你的回复。

我做了同样的事事情,然后我发布了它。

图片没有出现,但与之关联的链接对我有用。

好​​像我正在使用不受支持的文件。


感谢您的时间

Hi there,

Thanks so much for the reply.
I did the same thing and then I posted it.
Image is not coming up but the link associated with it is working for me.
It is coming as if I am using an unsupported file.

Thanks for your time



如果您的图片位于服务器上的文档树中,那么您可以放置​​它使用HTML图片代码进入页面,< img url ="您的文件名在这里取代。
If your image is within the document tree on the server, then you can place it into a page using an HTML image tag, <img url="your file name here" >.



网址不是< img>的属性标签,这样就行不通了。允许的属性是src,所以你的语句看起来像

URL is NOT an attribute of the <img> tag, so that will not work. The allowed attribute is src, so your statement would look something like

展开 | 选择 | Wrap | 行号


这篇关于加载图片时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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