HTML
The background image is done
html provides an hr tag
I wrote it, but I can’t center the horizontal line vertically.
2L is right. It’s the fastest, just cut a pixel and repeat it horizontally, add a border outside, and add padding
For vertical centering, try
vertical-align:middle;
Yes, what the person on the 4th floor said is good,
Vertical centering
vertical?align:middle;
Background image and hr are both good choices
Personally, I think the background is better
http://blog.sina.com.cn/s/blog_9b55b27e01013hp7.html Go and have a look here, it would be pointless to copy it over.
http://blog.sina.com.cn/s/blog_9b55b27e01013hp7.html Go and have a look here, it would be pointless to copy it over.
Learned
The picture is the simplest, most direct and effective
Insert the hr tag, set the attributes, size, length and thickness All can be set