我有一行文本在一个固定宽度的容器中换行到下一行,如下所示:
Citizens Bank / Greenline Ventures / Local Initiatives Support Corporation (LISC) / Nortridge Software Company / Ohio Capital Corporation for Housing / Oppenheimer Multifamily Housing & Healthcare Finance / PIDC/Portfol / PolicyMap
我相信宽度大约是 250 像素宽。是否有任何地方可以确保当它换行到下一行时,它不以 a 开头/
?例如,如果发生这种情况......
Citizens Bank / Greenline Ventures / Local Initiatives Support Corporation (LISC)
/ Nortridge Software Company / Ohio Capital Corporation for Housing / Oppenheimer
Multifamily Housing & Healthcare Finance / PIDC/Portfol / PolicyMap
它需要更改它,以便(LISC)
在下一行和前面/
这样:
Citizens Bank / Greenline Ventures / Local Initiatives Support Corporation
(LISC) / Nortridge Software Company / Ohio Capital Corporation for Housing /
Oppenheimer Multifamily Housing & Healthcare Finance / PIDC/Portfol / PolicyMap
这是通过电子邮件发送的,因此不能使用 PHP 或 CSS 和 HTML 以外的任何东西。我正在考虑使用white-space: pre
,这其中有太多缺陷,从某种意义上说,它倾向于将单词过多地分解到下一行,例如:
Citizens Bank / Greenline Ventures / Local Initiatives Support Corporation
(LISC) /
Nortridge Software Company / Ohio Capital Corporation for Housing /
Oppenheimer Multifamily Housing & Healthcare Finance / PIDC/Portfol / PolicyMap
我在文本标签white-space: pre
内使用会得到奇怪的结果。<span>
另外,不知道为什么,但<pre>
标签也不是合适的答案。出于某种原因,将文本包装在<pre>
标签中并不总是有效。也许是另一种解决方案?我认为在电子邮件中布置内容时,我们必须更加积极地思考。