<div class="top">
<div id="abso">项目案例</div>
<div id="abso1">Case presention</div>
</div>
.top {
- width: 100%;
- height: 220px;
- background-image: url(../img/aa.jpg);
- background-attachment: fixed;
- background-position: center center;
- background-repeat: no-repeat;
- -webkit-background-size: cover;
- background-size: cover;
}