html5 - 百度Ueditor代码高亮和代码段滚动条冲突是怎么回事?
问题描述
这是正常的代码显示(来源于数据库),此时未开启高亮显示
根据文档中如下开启高亮:
<script type='text/javascript' charset='utf-8' src='https://www.haobala.com/wenda/ueditor/ueditor.all.min.js'></script><script type='text/javascript' charset='utf-8' src='https://www.haobala.com/wenda/ueditor/lang/zh-cn/zh-cn.js'></script> <script> SyntaxHighlighter.all(); </script>
之后网页显示的代码确实显示出了高亮,但是失去了滚动条
请问怎么兼得高亮和滚动条?
问题解答
回答1:<script type='text/javascript' charset='utf-8' src='https://www.haobala.com/wenda/ueditor/ueditor.all.min.js'></script> <script type='text/javascript' charset='utf-8' src='https://www.haobala.com/wenda/ueditor/lang/zh-cn/zh-cn.js'></script> <script>
SyntaxHighlighter.all();
</script>
相关文章:
1. html - 竖线怎么实现2. navicat - Mysql无法连接3. python打包代码上传PYPI出现错误500,虚心求教4. python3.x - python多进程,不能在同一窗口吗5. clone - git sourceTree克隆仓库时,都不停弹出Password Required弹窗,即时输入正确的git账号密码还是弹出6. python - 用ffmpeg采集视频,用terminate没法结束进程7. PHP中的$this代表当前的类还是方法?8. mysql - laravel 子查询的问题9. thinkphp中Controller里面使用Request::File(’image’);10. python - pandas读取中文的时候乱码 要如何解决?

网公网安备