【发布时间】:2014-09-24 22:13:31
【问题描述】:
我有一段文字是合理的。在文本的某个点,我需要下一行以某个单词开头,所以我需要中断文本,但我仍然希望“中断”行对齐(拉伸到行尾),即使这意味着单词之间有很大的难看空格。
有没有办法做到这一点?
我使用的是 CSS 2.0(无法访问 3.0),这只需要在 Internet Explorer 7+ 中工作。
HTML:
<p>
This is the paragraph that I want to justify. I want a line
break after the period, but I still want this line justified.<br />
Is there any way to do that?
</p>
CSS:
p { text-align:justify; width:200px; }
JSFiddle:Justified text
【问题讨论】:
标签: html css internet-explorer justify