html - word-wrap 換行失效
問題描述
同一段代碼,保存為html文件,在win7下打開就能換行,在ubuntu15.04下則不會
<pre style='word-wrap:break-word;'>的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加</pre>
加上word-break:break-all也沒用。
問題解答
回答1:pre {white-space: pre-wrap;word-wrap: break-word;}
相關(guān)文章:
1. mysql - ubuntu開啟3306端口失敗,有什么辦法可以解決?2. php傳對應(yīng)的id值為什么傳不了啊有木有大神會的看我下方截圖3. extra沒有加載出來4. javascript - 微信網(wǎng)頁開發(fā)從菜單進入頁面后,按返回鍵沒有關(guān)閉瀏覽器而是刷新當(dāng)前頁面,求解決?5. mysql - C#連接數(shù)據(jù)庫時一直這一句出問題int i = cmd.ExecuteNonQuery();6. mysql日期類型默認(rèn)值’0000-00-00’ 報錯7. 求救一下,用新版的phpstudy,數(shù)據(jù)庫過段時間會消失是什么情況?8. mysql replace 死鎖9. windows - asp.net連接上mysql之后如何調(diào)用?比如下面的登錄驗證功能怎么實現(xiàn)10. android - 安卓做前端,PHP做后臺服務(wù)器 有什么需要注意的?
