html - word-wrap 換行失效
問題描述
同一段代碼,保存為html文件,在win7下打開就能換行,在ubuntu15.04下則不會(huì)
<pre style='word-wrap:break-word;'>的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加的干活唄然后很金融街人擠人接添加</pre>
加上word-break:break-all也沒用。
問題解答
回答1:pre {white-space: pre-wrap;word-wrap: break-word;}
相關(guān)文章:
1. docker images顯示的鏡像過多,狗眼被亮瞎了,怎么辦?2. docker api 開發(fā)的端口怎么獲???3. dockerfile - [docker build image失敗- npm install]4. nignx - docker內(nèi)nginx 80端口被占用5. golang - 用IDE看docker源碼時(shí)的小問題6. 關(guān)于docker下的nginx壓力測(cè)試7. dockerfile - 為什么docker容器啟動(dòng)不了?8. jpa mysql 如何id自增初始值?9. docker網(wǎng)絡(luò)端口映射,沒有方便點(diǎn)的操作方法么?10. dockerfile - 我用docker build的時(shí)候出現(xiàn)下邊問題 麻煩幫我看一下
