Ajax正在加载图片. [英] Ajax loading image..

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

问题描述


我需要创建一个包含四个div的页面.每个div将加载不同的图像,并且div将在我的身边.
问题是每个图像的大小不相等,并且加载时间不同.我需要在每个div中显示图像加载进度栏.在每个分区上加载特定图像之前.

请帮助.....

提前感谢..

Hi,
I need to create a page with four div . Each div will load different images and the divs will be side my side.
the thing is that the size of each image are not equal and have different loading time. i need to show image loading progress bar in each div. before the particular image loads on each div.

Please help.....

Thanx in advance..

推荐答案

我刚刚尝试了此处给出的示例 http://jqueryfordesigners.com/image-loading/ [^ ]

此示例包含单个div.您可以用相同的方式实现其余3格的实现.
您可能还需要将图片的高度和宽度的属性设置为等于各自的div,以适合div中的图片.

试试吧,也许对您有用.

谢谢.
I just tried example given here http://jqueryfordesigners.com/image-loading/[^]

This example contains single div. you can implement it in the same way for rest 3 div.
you may also require to set attribute for height and width of image equal to respective div to fit the image in div.

Try it, may be it work for you.

Thanks.


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

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