<style type="text/css">
html,body{
height:100%;}
#box {
width:100%;
height:100%;}
.one{
width:100%;
height:100%;
background:url(images/02.png) no-repeat top center fixed;
background-size:contain;
}
.two{
width:100%;
height:100%;
background:url(images/drinkzeo.png) no-repeat top center fixed;
background-size:contain;}
</style>
</head>
<body>
<div id="box">
<div class="one">1</div>
<div class="two">2</div>
</div>
转载于:https://www.cnblogs.com/su1637/p/8204375.html