导航
关闭

狼王King

当前位置:首页 > 网络教程 - 正文

帝国CMS百度编辑器ueditor前台代码高亮无法自动换行解决方法

  人参与 |更新时间: 2020年01月19日 21:08

以下文件需要修改:

/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;代码,

意思是:强制打断并换行的意思。

编辑:狼王(微信/QQ:1574808)

来源:狼王King(微信/QQ:1574808),欢迎分享!

本文链接:https://www.iwolfking.com/jiaocheng/319.html

评论专区

留言与评论(共有 0 条评论)
表情:   
验证码: