简体   繁体   English

CSS 的多角度重复线性渐变

[英]CSS's repeating-linear-gradient with multiple angles

I'm trying to create a repeating linear gradient with consecutive but inversed angles (alternating colors and angles).我正在尝试创建具有连续但倒角的重复线性渐变(交替 colors 和角度)。 Is this posible?这可能吗? and how could I accomplish it?我怎么能做到呢?具有多个角度的重复线性渐变 . . Thanks!谢谢!

Those are two repeating linear-gradient:这是两个重复的线性渐变:

 html { min-height: 1000px; background: linear-gradient( 12deg, #0000 70%, #000 0), linear-gradient(168deg, #0000 70%, #000 0); background-size: 100% 400px; }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM