<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>线性渐变</title>
<style type="text/css">
.box{
height: 200px;
background-color: red;
background-image:linear-gradient(red,yellow,blue);}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>
<style type="text/css">
#box {
height: 200px;
background-color: red;
background-image: linear-gradient(to bottom right, red, blue);
}
</style>
版权属于:
moonjerx
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
评论 (0)