【发布时间】:2015-08-09 01:11:45
【问题描述】:
所以我有这个 400px * 200px 的文本区域,其中包含“so-me-thing”之类的词。结果如下:
| This is so-me text with syl-lab- |
| les. I want the word syl-lab-les |
| to be on the same line. |
我想要的是这个:
| This is so-me text with |
| syl-lab-les. I want the word |
| syl-lab-les to be on the same |
| line. |
我不知道如何实现这一点。希望有人理解我要解释的内容。我需要纯 css 解决方案,而不是 javascript 或其他。
【问题讨论】:
-
它已经在工作了:jsfiddle.net/jwdyc1rh/4
标签: html css textarea line-breaks