Home > Web Front-end > HTML Tutorial > Button style display problem. I don't know if anyone can solve it._html/css_WEB-ITnose

Button style display problem. I don't know if anyone can solve it._html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-24 12:20:53
Original
1105 people have browsed it

As mentioned, now I have 2 buttons.






Because the first Button text has a line break, the size of the two buttons is inconsistent.

Now I have a request I just want the two Buttons to have the same style (the same height and the same horizontal height).
And the text of btn2 is centered (centered left and right, centered up and down.)

It cannot be achieved by setting the Height of btn2 It works.
I wonder if an expert can give me some guidance.

I’m not good at css.


Reply to the discussion (solution)

<input type="button" value="新规&#13;&#10;保存" id="btn1" style="width: 60px; height: 40px; float: left;"><input type="button" value="保存" id="btn2" style="width: 60px; height: 40px; float: left;">
Copy after login

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