如何强制显示图像 [英] How to force an image to be displayed

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

问题描述

我已经开发了一个网页.该网页包含图像标签.
例如

I have developed a web page. the web page contains an image tag.
For example

<img src="./homedirectory/images/myimage.jpg" alt="image" />


图像源是由php脚本生成的.所有图像都存储在根目录中的目录"images"中.
图像大小可能在100 KB到800 KB之间.但是,当打开此网页时,有时会显示图像,有时则不会.我想强制显示此图像.


The source of image is being generated by a php script. All the images are stored in a directory "images" in the root directory.
the images size may be from 100 KB to 800 KB. But when this web pages is opened, some times image shows up and some times not. I want to force this image to be showed up. How can I do that??

推荐答案

u可以使用它来显示图像


< img src ="pulpit.jpg" alt =讲坛的岩石" width ="304" height ="228"/>

供参考,请使用此 [链接]
u can use this to show the image


<img src="pulpit.jpg" alt="Pulpit rock" width="304" height="228" />

for referance, use this [link]


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

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