大家好,这个 Queryloader 正在我的页面上运行,但我现在想要的是将图像放入加载器(例如公司 Logo )。请帮忙
<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
关于javascript - gayadesign 如何将图像放入 QueryLoader 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28274553/