您的位置:首页 > Web前端 > JavaScript

基于javascript的在火狐里面强制换行字符

2010-06-13 00:37 281 查看

效果演示代码:

firefox-break-word If there were less sympathy in the world, there would be less trouble in the world. ( O. Wilde )
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
CSS控制强制换行/强制换行

强制不换行
div{
white-space:nowrap;
}

自动换行
div{
word-wrap: break-word;
word-break: normal;
}

强制英文单词断行
div{
word-break:break-all;
}

您可能感兴趣的文章:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  火狐 强制换行