数据过长时如何调整ASP标签控件的高度 [英] how to adjust height of asp label control when data is too long

查看:91
本文介绍了数据过长时如何调整ASP标签控件的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当数据太长时如何调整asp标签控件的高度

how to adjust height of asp label control when data is too long

推荐答案

如果指定width属性,则label自动包装它并显示多行.音符换行适用于句子的单词.但是,如果一个单词有1000个字符,就不能包装.难道这就是您的问题吗?
If you specify the width property then label automatically wrap it and display multi lines. Note wrap works on the words of the sentences. But if a word with 1000 chars it can''t wrap. Is that is your problem a long word?


设置标签的高度-宽度尽可能多.只要句子/数据可以破坏并显示,它将自动包装并显示.如果超过该面积,它将被切断.

对于这种情况,通常会检查数据长度,如果发现超过一定长度,则会在标签悬停时显示整个文本,然后将标签txt本身切掉并在其末尾加一个省略号.
Set the label''s height-width as much available. As long as the sentence/data can break and show, it will automatically wrap and show. If it exceed the area, it will get cut off.

For such cases, generally, the data length is checked and if found more than a certain length then the entire text is shown on hover of the label and the label txt itself is chopped off with an ellipses at the end.


这篇关于数据过长时如何调整ASP标签控件的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆