css CSS Zig Zag Borders
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css CSS Zig Zag Borders相关的知识,希望对你有一定的参考价值。
.overlay:before{
background: linear-gradient(-135deg, #ffffff 16px, transparent 0), linear-gradient(135deg, #ffffff 16px, transparent 0);
background-position: left top;
background-repeat: repeat-x;
background-size: 32px 32px;
content: " ";
display: block;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 32px;
}
.overlay:after{
background: linear-gradient(-45deg, #ffffff 16px, transparent 0), linear-gradient(45deg, #ffffff 16px, transparent 0);
background-position: left bottom;
background-repeat: repeat-x;
background-size: 32px 32px;
content: " ";
display: block;
position: absolute;
bottom: 0px;
left: 0px;
width: 100%;
height: 32px;
}
以上是关于css CSS Zig Zag Borders的主要内容,如果未能解决你的问题,请参考以下文章
P4432 [COCI2017-2018#2] ??ZigZag
cs61b lab14
C ++中动态分配的向量中的分段错误
Css权威指南(4th,第四版中文翻译)-8.Padding,Borders,Outlines,Margins
bzoj-3223 文艺平衡树
第二章 Background & Borders 之 Multiple borders