详细代码和图片在百度云里面下载http://pan.baidu.com/s/1hs2hl6O



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>背景图片做轮播+自动轮播</title>
<style type="text/css">
*, body {
margin: 0px;
padding: 0px;

}

#container {
margin-left: 200px;
background-color: darkgrey;
text-align: center;
width: 980px;

}

#top {
width: 980px;
height: 65px;
/**/
background-image: url("img/topbg.png");
background-size: auto;
background-position: center;
/**/
}

#bottom {
width: 980px;
height: 65px;
background-image: url("img/bottombg.png");
background-size: auto;
background-position: center;
/**/

}

#banner {
width: 980px;
height: 330px;
background-image: url("img/1.jpg");
/*background-position: left;*/
/*background-repeat: no-repeat;*/
position: relative;
-webkit-transition: all 1.8s linear;

}

#banner-left {
background-image: url("img/images/btn_03.png");
width: 60px;
height: 60px;
position: absolute;
margin-top: 130px;
opacity: 0;
-webkit-transition: all 0.8s linear;

}

#banner-right {
background-image: url("img/images/btn_01.png");
width: 60px;
height: 60px;
position: absolute;
right: 0px;
margin-top: 130px;
opacity: 0;
-webkit-transition: all 0.8s linear;
}

#banner:hover > #banner-right, #banner:hover > #banner-left {
opacity: 0.8;
/*background-image: url("../img/images/btn_02.png");*/

}
</style>
</head>
<body>
<div ;

}


</script>
</body>
</html>

相关文章:

  • 2022-01-03
  • 2021-05-14
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
  • 2021-08-06
  • 2021-12-26
  • 2022-12-23
猜你喜欢
  • 2021-10-07
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2021-07-21
  • 2021-06-24
  • 2021-07-27
相关资源
相似解决方案