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. 開了mc服務(wù)器但是不會全服同步數(shù)據(jù)2. php自學(xué)從哪里開始?3. PHP單例模式4. 導(dǎo)入數(shù)據(jù)庫不成功5. 老師 我是一個沒有學(xué)過php語言的準(zhǔn)畢業(yè)生 我希望您能幫我一下6. Thinkphp 下載地址找不到了?7. index.php錯誤,求指點8. nginx 504 Gateway Time-out 請問如何設(shè)置9. 在cmd下進(jìn)入mysql數(shù)據(jù)庫,可以輸入中文,但是查看表信息,不顯示中文,是怎么回事,怎新手,請老師10. mysql如何配置遠(yuǎn)程php外網(wǎng)鏈接數(shù)據(jù)庫
