我有一個頁面顯示從mysql數據庫中檢索到的文本。如何將文本保存在div中?
我不明白爲什麼我不能讓文本顯示爲div內的文本塊。相反,它溢出了div。 (我使用自舉3)這是一個fiddle
<div class="container">
<div class="row">
<!---MAIN COLUMN------>
<div class="col-xs-12 col-md-6 col-sm-8 col-lg-6 col-centered">
<h2>
How to keep the text inside the div?
</h2>
<div class="mytext">
fdsnkfhskghkgskghsdkghdskghdsklhgkdlsghds
khgkdshgdksghdsklghdskg hkdslhgkdshgkdshgkdshgkd
shgksdlhgksdhgkdslhgkdshgkdshgkdshgksd hgkldshgkd
shgkldshgkhdsgkhdskghdskhgkdlshgkdshgkldsh
gkdshgklhds kghdskghdskl
<small>
</small>
</div>
</div>
</div>
</div>
可能重複的[如何在DIV中強制換行符中的換行符?](http://stackoverflow.com/questions/3058866/how-to-force-a-line-break-in-a -loooooong字-IN-A-DIV) – Dez