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. python - Django有哪些成功項目?2. 實現bing搜索工具urlAPI提交3. Python從URL中提取域名4. MySQL主鍵沖突時的更新操作和替換操作在功能上有什么差別(如圖)5. 關于mysql聯合查詢一對多的顯示結果問題6. 數據庫 - Mysql的存儲過程真的是個坑!求助下面的存儲過程哪里錯啦,實在是找不到哪里的問題了。7. node.js - 微信小程序websocket連接問題8. 直接打字符不可以嗎?>和>有區別嗎9. node.js - windows10下的npm全局路徑的復原或者將npm徹底刪除?10. Python中使用超長的List導致內存占用過大
