在 asp.net 标签中显示的文本的约束
每个人! 有人可以告诉我如何限制在 asp.net Label 控件中显示的文本行数吗? 谢谢!
everyone!
Could someone tall me how I can limit count of line of text, that is showing in asp.net Label control?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用此 css 定义单元格(或外部容器)的最大宽度。要定义文本的最大长度,您必须自行将文本截断到最大长度。
You could use this css to define a max width for the cell(or the outer container). To define a max length of the text, you have to truncate the text to your maximum length by yourself.
进行更改.css
Make changes .css