How to have an Input submit value on several lines in HTML

后端 未结 4 433
春和景丽
春和景丽 2021-02-04 18:52

Does anybody know if there is a way to display the text value of an button in HTML on several lines ?

I mean, if you lock the width of the button in the associated CSS

4条回答
  •  失恋的感觉
    2021-02-04 19:31

    This worked for me (using Chrome, didn't test other browsers):

    myButton.Text = "Click \r\n me";
    

提交回复
热议问题