帝國CMS百度編輯器ueditor前臺代碼高亮無法自動換行解決方法
發布時間:2019-10-28 來源:未知 瀏覽: 關鍵詞:
以下文件需要修改:
/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css
打開:shCoreDefault.css
找到81行,
.syntaxhighlighter table { width: 100% !important; border: 1px solid #c0c0c0 !important; }
修改為:
.syntaxhighlighter table { width: 100% !important; word-break:break-all; border: 1px solid #c0c0c0 !important; }
即可實現自動換行,增加了一句:word-break:break-all;代碼,
意思是:強制打斷并換行的意思。
責任編輯:實速科技