在Div中换行 [英] Wrap the text in Div

查看:66
本文介绍了在Div中换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要将文本包装在

Hi All,

I Need to wrap the text in

(aspx.cs一侧)中,如果在包装字符串之后没有位置,那么我需要在空间不可用的情况下终止字符串.
(aspx.cs side),If there is no place after wrap the string then i need to terminate string where the space is not available.

推荐答案

尝试以下代码:

Try the below code:

div {
    width: 200px;
    word-wrap: break-word;
}


这篇关于在Div中换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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