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

WBOY
WBOYOriginal
2016-06-24 12:20:531064browse

As mentioned, now I have 2 buttons.


e8eb0fa737392f1aa3c2e103ddf5a234
7a5e64c7df52838209f3ec4cc7fa88bd


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;">

Statement:
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