css 画个锯齿

.jag {
    width: 100px;
    height: 20px;
    background-image: linear-gradient(-45deg, darkblue 50%, transparent 50%),linear-gradient(45deg, darkblue 50%, transparent 50%);
    background-size: 10px 10px;
    background-color: transparent;
    background-repeat: repeat no-repeat;
}
                

 

 

效果如图:

 

posted @ 2022-02-11 18:10  风生`  阅读(104)  评论(0编辑  收藏  举报