2016-07-30 31 views
0

StackEdit書寫。從數據庫中呈現的文本始終不會移動到下一行,

你好,從數據庫中呈現的文本始終沒有在我所有的應用程序移動到下一行,它總是停留在只有一條線路是否我使用<h>標籤或標籤<p>同樣的事情發生,偶爾爲之。這就是我的意思,順便說一句,我用基金會5和laravel。

can you see the text rndering in one line

又如

another example

這是我的代碼

<div class="small-12 medium-12 large-9 columns"> 
    <h5 class="text-left grey-text montserrat-font uppercase">style description</h5> 
    <hr> 
    <div class="text-con"> 
    <h6 class="grey-text montserrat-font testing"> 
    {{$style->style_description}} 
    </h6> 
    </div> 
</div> 
+0

因爲它不包含任何空間。它被認爲是一個單詞 – jaysingkar

回答

2

考慮到您的testing類具有所需的CSS。添加以下規則。

.testing { 
    word-wrap:break-word; 
} 
+0

非常感謝支持。 – udemethegrtman

0

只需添加省略號而不是斷字。 .testing{text-overflow: ellipsis;}

相關問題