HTML:我可以在多行显示按钮文本吗? [英] HTML: can I display button text in multiple lines?
本文介绍了HTML:我可以在多行显示按钮文本吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有长文字的按钮,例如点击这里开始播放。我想控制宽度和显示文本在多行。是否可以在html / css中?
I have a button with long text like "Click here to start playing". I want to control the width and display the text in multiple lines. Is it possible in html/css?
推荐答案
两个选项:
<button>multiline<br/>button<br/>text</button>
或
<input type="button" value="Carriage return separators" style="text-align:center;">
这篇关于HTML:我可以在多行显示按钮文本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文