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;}
相關文章:
1. mysql - 字符串根據字典替換2. 請教使用PDO連接MSSQL數據庫插入是亂碼問題?3. mysql - 把一個表中的數據count更新到另一個表里?4. 視頻文件不能播放,怎么辦?5. node.js - 為什么微信的消息MsgId出現重復了,無法排重了。。6. python如何不改動文件的情況下修改文件的 修改日期7. mysql - 分庫分表、分區、讀寫分離 這些都是用在什么場景下 ,會帶來哪些效率或者其他方面的好處8. flask - python web中如何共享登錄狀態?9. node.js - nodejs開發中常用的連接mysql的庫10. mysql 查詢身份證號字段值有效的數據
