版权声明:本文内容均来自原创及互连网转载。最终目的为记录自己需要的内容或自己的学习感悟,不涉及商业用途。 https://blog.csdn.net/qq_40456064/article/details/85195892
body{
background-image: url( ' ' );
background-repeat: repeat-x repeat-y no-repeat;
background-position: 100px 100px;
/*x: left center right*/
/*y: top center bottom*/
height: 1500px; /*高度, 长了可以滚动*/
background-attachment: fixed;/*背景是否滚动*/
/*也可以放在一起写*/
background: color:red url: ( ' ' ) no-repeat fixed 100px 100px
}