小编ver*_*ver的帖子

调整大小时避免在两个单词之间分开

我有一个字符串,我需要它不要在不同的行中打破两个特定的单词.例:

"Ask for it it when contracting until 2016/09/30 with T-2 Rate"
Run Code Online (Sandbox Code Playgroud)

当我调整窗口大小并使其变小时,它会输出一个时刻:

"Ask for it it when contracting until 2016/09/30 with T-2 \n
Rate"
Run Code Online (Sandbox Code Playgroud)

我想T-2 + Rate永远在一起.怎么做?

html css string text line-breaks

11
推荐指数
2
解决办法
1208
查看次数

标签 统计

css ×1

html ×1

line-breaks ×1

string ×1

text ×1