帝国CMS百度编辑器ueditor前台代码高亮无法自动换行的解决方法
491 人阅读 | 时间:2020年01月26日 18:54
阿里云服务器 | 腾讯云服务器 | 习梦云:高防云服务器 | ZJI:香港日本美国独服 |
LOCVPS服务周到 | HostKvm低调KVM VPS | 傲游主机:优质VPS | 80VPS:老牌VPS主机 |
搬瓦工:CN2 GIA线路 | CloudCone:性价比高 | Vultr:按小时计费VPS | VirMach:超级便宜 |
JustMySocks科学上网 | 好用的宝塔面板 | 洛杉矶QN机房官方VPS | 恒创:香港CN2服务器 |
/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;代码,
意思是:强制打断并换行的意思。
评论专区