Home > Web Front-end > HTML Tutorial > html draw a line, please help_html/css_WEB-ITnose

html draw a line, please help_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:22:37
Original
968 people have browsed it

HTML




Help draw this line, it must be the same

Reply to discussion (solution)

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


tag, and then set the css style




The picture is the simplest, most direct and effective

Insert the hr tag, set the attributes, size, length and thickness All can be set

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template