这两个同时写,圆角不会生效
li {
width: 282px;
height: 96px;
margin-right: 20px;
box-sizing: border-box;
border: 1px solid transparent;
background-image: linear-gradient(#fff, #fff),
linear-gradient(to right, #8efd9f, #07cbfb);
background-origin: border-box;
background-clip: content-box, border-box;
border-radius: 10px;
}
这样就实现想要的效果了