参考文章:https://www.gouji.org/?post=317
使用css+js实现背景图片轮播
废话不多说,代码:
<style>
th {
text-align: center;
}
#bd_main {
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: -10;
background-position: center 0;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
zoom: 1;
opacity: 1;
transition: opacity 1s linear;
-moz-transition: opacity 1s linear;
-webkit-transition: opacity 1s linear;
-o-transition: opacity 1s linear;
/*background-image: url(../../Content/images/LoginBackground1.JPG) no-repeat center #eee;
background-attachment: fixed;
backgroun