Home >Web Front-end >HTML Tutorial >Button style display problem. I don't know if anyone can solve it._html/css_WEB-ITnose
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.
<input type="button" value="新规 保存" id="btn1" style="width: 60px; height: 40px; float: left;"><input type="button" value="保存" id="btn2" style="width: 60px; height: 40px; float: left;">