1-17背景滚动

<!--复合写法 
background:green url(../img/1.jpg) no-repeat center top;
 
 -->
<!--
            background-attachment   背景图片是否滚动
scroll    背景图片跟随滚动条滚动
fixed      背景图片不会跟随滚动条而滚动
            -->
<style>
div{
width:300px;
       height:3000px;
       border:10px solid red;
       background-image:url(../img/1.jpg);
background-repeat:no-repeat;
background-attachment:fixed;
background:green url(../img/1.jpg) no-repeat center top;
 
}
</style>
背景滚动
背景滚动

版权所有,未经允许禁止转载,沫熙点击加我QQ:1161478487