首先在IMG SRC中加载较小的图形文件? [英] Load smaller graphic file first in IMG SRC?

查看:94
本文介绍了首先在IMG SRC中加载较小的图形文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要在IMG SRC标记中显示大图形文件。你怎么能拥有它

首先快速显示一个虚拟的小图形,同时它等待完整的

大文件大小加载到html代码中的同一个地方。我相信我有

听说这可以做到???

Have a large graphic file to display in an IMG SRC tag. How can you have it
quickly display a dummy small graphic first while it waits for the full
large file size to load in the same place in the html code. I believe I have
heard this can be done???

推荐答案

AFAIK没有HTML允许像你描述的替换图像。

我从未尝试过,但也许你可以用

CSS指定背景图像。请参阅 http://www.w3.org/TR /CSS2/colors.htm...und-properties


" Al Franz" <人**** @ nospam.netmation.com>写在消息

news:0ZtEb.396419
AFAIK there''s no HTML which allows a replacement image like you describe.
I''ve never tried it, but perhaps you can specify a background image with
CSS. See http://www.w3.org/TR/CSS2/colors.htm...und-properties.

"Al Franz" <al****@nospam.netmation.com> wrote in message
news:0ZtEb.396419


Dw6.1247727@attbi_s02 ...
Dw6.1247727@attbi_s02...
有一个大的图形文件要显示在IMG SRC标签中。你怎么能有
它会在等待完整的大文件大小加载到html代码的同一个地方时快速显示一个虚拟的小图形。我相信我
听说过这个可以做到吗???
Have a large graphic file to display in an IMG SRC tag. How can you have it quickly display a dummy small graphic first while it waits for the full
large file size to load in the same place in the html code. I believe I have heard this can be done???



Al Franz写道:
Al Franz wrote:
有一个大图形文件显示在IMG SRC标记中。你怎么能拥有它?
在等待完整的大文件大小加载到html代码中的同一个地方时,首先快速显示一个虚拟的小图形。我相信我已经听说过这可以做到吗???
Have a large graphic file to display in an IMG SRC tag. How can you have it
quickly display a dummy small graphic first while it waits for the full
large file size to load in the same place in the html code. I believe I have
heard this can be done???




首选的方式,虽然它不是你问的,但是

使用alt属性。但是,还有lowsrc和lowsrc。属性

仅受旧版Netscape的支持。 lowsrc

的问题是必须加载两个图像。



The preferred way, though it''s not exactly what you asked, would be to
use the "alt" attribute. However, there''s also the "lowsrc" attribute
supported only by old versions of Netscape. The problem with "lowsrc"
is the fact that two images must be loaded.


这篇关于首先在IMG SRC中加载较小的图形文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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