1. 程式人生 > >background-attachment css3屬性

background-attachment css3屬性

emp temp post attach all width tac text spa

<style type="text/css">
    body{
        margin: 0;
    }
    .zhan{
        width: 100%;
        height: 500px;
        background: pink;
     }
     .bigbg{
        background: url(https://image.metinfo.cn//templates/metinfo2016/min/img/index/logowall.jpg);
        height: 500px;
        background-attachment
: fixed; } </style>
<div id="box">
    <div class="zhan"></div>
    <div class="bigbg"></div>
    <div class="zhan"></div>
</div>

background-attachment css3屬性