0
点赞
收藏
分享

微信扫一扫

vue虚拟滚动/虚拟列表简单实现

 background: linear-gradient(90deg,red,green);

1.支持多颜色渐变

2.支持多方向渐变   to left    to top left

3.支持角度90deg


<!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{
            width: 300px;
            height: 300px;
            border: 10px solid gray;
            background: linear-gradient(90deg,red,green);
            /* 1.支持多颜色渐变 
               2.支持多方向渐变   to left    to top left
               3.支持角度90deg
               
               */
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>

举报

相关推荐

0 条评论