[url]http://www.2cto.com/kf/201411/348425.html[/url]
官方: [url]https://github.com/srobbin/jquery-backstretch[/url]
<script src="Scripts/jquery-1.8.2.min.js"></script>
<script src="Scripts/jquery.backstretch.min.js"></script>
$(function () {
$(".container").css({ opacity: .8 }); //设置透明度
$.backstretch([
"Images/backgrounds/101_1.jpg",
"Images/backgrounds/44_1.jpg"
], { duration: 3000, fade: 750 });
});
</script>
标签:jQuery,插件,Backstretch,url,backgrounds,jpg,backstretch,Images,com
From: https://blog.51cto.com/u_3871599/6411138