我使用的是html / css和text-align:justify;当我使用下面的文字时,第二行的单词之间有很大的差距。剩下的东西都很好。
<p style="text-align: justify;">Lorem Ipsum is simply dummy text of the <a href="http://example.com"> example </a>and Lorem Ipsum is simply dummy text of the lorem. I'm also printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic </p>
我在第2行的每个单词之间得到了很多额外的空格。我怎么解决它? 像这样:
Lorem Ipsum is simply dummy text of the Lorem Lorem Lorem Lorem Lorem
text of the lorem. I'm also printing and typesetting industry.
Lorem Ipsum has been
在
答案 0 :(得分:1)
text-align: justify;
展开一条线,以确保它的末尾没有间隙。要做到这一点,它必须在中间添加额外的空格。
如果您不想这样做,请不要text-align: justify;
或告诉我们您希望它做什么?也许你想要text-align: left
?
:)