给网站背景加上渐变色

代码特效

css如下

body {
font-family: "Segoe UI";
background-image: linear-gradient(160deg, #290B36 10%, #043453 80%);
background-repeat: no-repeat;
background-attachment: fixed;
font-size: 16px;
}

也许您对下面的内容还感兴趣: