TextBox中显示的文本格式 [英] Format of text displayed in TextBox
本文介绍了TextBox中显示的文本格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于动态加载字符串的文本框。字符串很长,在文本框中只显示一行。因此,只有一部分字符串可见。如何更好地格式化TextBox中的文本?谢谢。
For a Textbox that dynamically loads a string. The string is long and displays only 1 line in the Textbox. Thus, only a part of the string is visible. How can the text in the TextBox get better formatted? Thanks.
推荐答案
使用HtmlTextArea和runat =server而不是TextBox
http://www.w3schools.com/aspnet/control_htmltextarea.asp [ ^ ]
Use HtmlTextArea with runat="server" instead of TextBox
http://www.w3schools.com/aspnet/control_htmltextarea.asp[^]
这篇关于TextBox中显示的文本格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文