易仿帝国yfdiguo.com

您当前的位置:首页 > 问题库

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

zcmcss发表于2017-12-11问题库
以下文件需要修改:
/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;代码,
意思是:强制打断并换行的意思。

热门问题

©2017 易仿帝国yfdiguo.com


友情链接: 阿里云优惠网| 阿里云推荐码| 阿里云教程| 莫愁博客|
♥ www.yfdiguo.com
联系作者QQ: