Gradient cannot give the color gradient of the border, so I wrote it in two spans. It is basically implemented. You can change the specific style value yourself. There is also gradient compatibility and the method of removing pixels between inline-blocks. Please check Baidu carefully.
It doesn’t have to be as complicated as upstairs
HTML:
CSS:
This is mainly about the background attribute. The format used here is as follows:
The modification before and after the text is achieved using pseudo-elements respectively
by setting the border attribute of the pseudo-element
Gradient cannot give the color gradient of the border, so I wrote it in two spans. It is basically implemented. You can change the specific style value yourself. There is also gradient compatibility and the method of removing pixels between inline-blocks. Please check Baidu carefully.