ASP.NET中的HTML文本截断问题 [英] HTML Text Truncating Issue in Asp .net

查看:67
本文介绍了ASP.NET中的HTML文本截断问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个div,在其中需要绑定文本.我的文字可能是"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaa"或"111111111555SSSWWWWnnnnnnnnYY"或任何其他.

我的div有一个Particualarar宽度..Iam使用asp.net.我不想用字符数来限制文本(我们的项目不仅使用英语,还使用了许多差异语言).

输出应始终具有恒定的高度和宽度.而且没有断字(意思是我不想在文本末尾看到半角字母"a")

Plese帮助...

I have one div, inside that i need to bind my text. My text May be "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaa" or "111111111555SSSWWWWnnnnnnnnYY" or any other.

My div have One Particualar width..Iam using asp.net. i dont want to limit the text by no of Characters(Our Project is using no only english ,many diff languages).

The output should be always come with constant height and width. And With no Trucation of Letters( Means I dont want to see Half Letter ''a'' at the end of text)

Plese Help...

推荐答案

您可以设置width或height变量或添加滚动条...以确保文本始终可见.
You can make the width or the height variable or add scrollbars... to ensure the text is always visible.


这篇关于ASP.NET中的HTML文本截断问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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