如上图所示想实现这种彩色边框,听人说CSS3能实现,麻烦有做过的给个简单demo、O(∩_∩)O谢谢
认证0级讲师
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 transparentOr just solve it with a picture.
I won’t write a demo for you. Baidu css3 linear-gradient linear gradient.
It seems that the border can only be simulated through the background, or the border background image
The first parameter is the borderoffset inward, and the second parameter is border width
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.
I won’t write a demo for you. Baidu css3 linear-gradient linear gradient.
It seems that the border can only be simulated through the background, or the border background image