整條生產線或無我想保持一個文本行在一起,使得無論是整條生產線下落在所有保持一條線文本作爲單行 - 包裝在所有
線或無可接受
How do I wrap this line of text - asked by Peter 2 days ago
可接受
How do I wrap this line of text
- asked by Peter 2 days ago
不交流ceptable
How do I wrap this line of text - asked by Peter
2 days ago
這是可以在CSS中實現嗎?代替空格等等;
// HTML:
.nowrap {
white-space: nowrap ;
}
<p>
<span class="nowrap">How do I wrap this line of text</span>
<span class="nowrap">- asked by Peter 2 days ago</span>
</p>
// CSS:
.nowrap {
white-space: nowrap ;
}
您的行如何以標記表示?你只是假設一個新行,因爲它包含一個連字符? – DoctorMick
@DoctorMick - 沒有假設的換行符和標記是完全開放的任何東西 - @Gus的答案已爲我釘 - 但 –