CSS写渐变边框线条

CSS写渐变边框线条_第1张图片 

box-sizing: border-box;
border-top: 1px solid;
border-image: linear-gradient(to right, red, blue) 1;

你可能感兴趣的:(前端,javascript,html)