阿神2017-04-17 15:09:00
The first parameter is the borderoffset inward, and the second parameter is border width
border-image: -webkit-linear-gradient( red, blue, yellow, black, white, green) 1 1;
If it’s just two sides, this will do. If it’s up, down, left, right, , add a rotate. If it’s all, just add another one and then rotate and make the border transparent
Or just solve it with a picture.
巴扎黑2017-04-17 15:09:00
I won’t write a demo for you. Baidu css3 linear-gradient linear gradient.
阿神2017-04-17 15:09:00
It seems that the border can only be simulated through the background, or the border background image