Open mynameisjohnahahah opened 5 years ago
给div添加条纹背景
斜着得
background-size: 10px 10px; background-color: #fff; background-image: -webkit-linear-gradient(-45deg, rgba(0, 0, 0, 0.2) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2) 75%, transparent 75%, transparent)); background-image: linear-gradient(-45deg, rgba(0, 0, 0, 0.2) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2) 75%, transparent 75%, transparent)
linear-gradient改成0
linear-gradient改成90
渐变
斜着得
横着的
linear-gradient改成0
竖着的
linear-gradient改成90