Muli-line button in IE

2019-05-07 17:55发布

I'm currently in a horrible situation that requires me to style an input of type "button" over two lines. Having a fixed width on the button causes the text within the button to wrap onto two lines in all other browsers except IE.

My question is therefore, how do I specify that an input with value="Button to Wrap" wraps onto two lines in IE?

I'm willing to accept any hacks or workarounds to make this happen.

Much appreciated!

7条回答
做自己的国王
2楼-- · 2019-05-07 18:44

What works for me is to set CSS white-space to pre-line of the button input with a fixed width.

But only the first line will be visible on the button input. So height must be set to a fixed value or to auto.

查看更多
登录 后发表回答