2017-10-12 129 views
-2

我使用的是html/css和text-align:justify;当我使用下面的文字时,第二行在单词之间有很大差距。其余的东西都很好。在html/css中删除单词之间的额外空格

<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 

+1

这是证明alignement –

+0

对齐意味着它占据了整条生产线。 – TidyDev

回答

1

text-align: justify;展开线,以确保有一个在它的结束没有间隙。要做到这一点,它必须在中间添加额外的空间。

如果你不想要这样,不要做text-align: justify;,或告诉我们你想要它做什么?也许你想text-align: left

:)

+0

OHH!我现在明白是的!对不起,谢谢你的回答:) – jason

相关问题