我正在使用线性渐变创建背景图像。如何为每个线性渐变添加圆角?
请在不更改HTML的情况下提供解决方案(不能使用多个div)。
请在不更改HTML的情况下提供解决方案(不能使用多个div)。
.myStyle {
height:500px;
width: 900px;
background-image:
linear-gradient(lightgrey , blue),
linear-gradient(lightgrey , blue),
linear-gradient(lightgrey , blue),
linear-gradient(lightgrey , blue);
background-repeat: no-repeat;
background-size:
100px 40px,
500px 60px,
250px 50px,
250px 60px;
background-position:
0 0,
0 80px,
0 160px,
0 220px;
}
<div class="myStyle"></div>