2017-10-12 19 views
-2

私はhtml/cssとtext-align:justifyを使用しています。下のテキストを使用すると、2行目は単語間に大きなギャップがあります。残りのものは問題ありません。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

関連する問題