我正在开发jquery图像库插件。我检查了像这样的图像加载:
$("#loading").show();
$('.preview').load(function () {
$("#loading").hide();
});
但我没有成功。我想在加载图像时显示加载gif。我该怎么做?例如:http://blueimp.github.com/Bootstrap-Image-Gallery/
您可以通过css简单地赋予它。尝试将加载图像作为父div 的背景