在asp.net中多行标签 [英] Multiline label in asp.net
本文介绍了在asp.net中多行标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用一个多标签,但因为控制依赖于浏览器,即使在设置高度,宽度和包装标签控件我无法显示多行文本,不支持所有浏览器都以同样的方式的性质
I want to use a multiline label but as the control is browser dependent, even on setting the height, width and wrap properties of the label control I am unable to display multiline text It doesn't support every browser in the same way.
推荐答案
如果你的意思是 ASP:标签
然后将它解析为跨度
在HTML输出元素。这既不是单行或多行。
If you mean asp:Label
then it resolves to a span
element in HTML output. It is neither single-line or multiline.
定义一些固定的宽度为这个元素和文本将换到几行时,它的足够长的时间。
Define some fixed width for this element and the text will wrap into several lines when it's long enough.
<asp:Label runat="server" style="width:300px;">
这篇关于在asp.net中多行标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文