嗨,大家好,这个Queryloader在我的页面上工作,但是我现在想要的是将图像放在loader中(例如公司徽标)。请帮忙
<script src="loader/queryloader2.min.js" type="text/javascript"></script>
<script type="text/javascript">
window.addEventListener('DOMContentLoaded', function() {
new QueryLoader2(document.querySelector("body"), {
barColor: "#e7c665",
backgroundColor: "#111",
percentage: true,
barHeight: 1,
minimumTime: 300,
fadeOutTime: 1000
});
});
</script>
http://www.gayadesign.com/diy/queryloader2-preload-your-images-with-ease/
最佳答案
插件加载会预加载HTML中的所有图像。没有规定只能加载图像的子集。就文档而言,至少没有。
It automatically fetches all your images and background images and preloads them before showing the webpage
-从QueryLoader2 site