0%
背景
.box { background-color: #faa;
background-image: url('https://picsum.photos/100/100/?random=1');
background-repeat: repeat;
background-position: 50% 50%;
background-size: cover;
background-attachment: fixed;
background: #ffa url('https://picsum.photos/100/100/?random=1') repeat center center/cover; }
|
漸層
.linear-gradient { background: linear-gradient(red, yellow, white); background: linear-gradient(45deg, red, yellow, white); background-image: linear-gradient(to right top, #fff 0%, lightblue 25%, #fff 50%, lightblue 75%, #fff 100%); }
.radial-gradient { background-image: radial-gradient(white, #ffffaa, pink); }
|