css实现网格桌布效果,line-gradient

css实现网格桌布效果,line-gradient

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style>
            body{
                margin: 0;
                background-color: #fff;
                background-image: linear-gradient(
                    transparent,
                    transparent 50%,
                    rgba(234,159,167, 0.3) 50%/*用来定位*/
                    ),
                    linear-gradient(
                    to right,
                    transparent,
                    transparent 50%,
                    rgba(234,159,167, 0.3) 50%);
                background-size: 40px 40px;
            }
        </style>
    </head>
    <body>
        
    </body>
</html>

 

css实现网格桌布效果,line-gradient

上一篇:jsp


下一篇:CSS文本溢出显示省略号