base-css-线性渐变

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            height: 100px;
            border: 2px solid #ddd;
        }
        div:first-child{
            /*渐变色 红绿蓝 默认从上到下垂直分布*/
            /*90deg可以改变角度 方向变为从左到右 等效于 to right*/
            /* background: linear-gradient(90deg,red,green,blue); */

            /*左上到右下*/
            background: linear-gradient(to bottom right,red,green,blue);
        }
    </style>
</head>
<body>
    <div>

    </div>
</body>
</html>

base-css-线性渐变

 

上一篇:2021-11-17webday3


下一篇:线性代数:System of Linear Equation学习笔记