前面我看到我设置的Ueditor 代码块有些问题,那就是它不对齐。
很是奇怪,网上找了一群基本没人遇见这个问题么。看到有几个说法是css冲突。不知道它的运行原理,我也不好下手,最后只有自己重css上看能不能调整下。
于是我就直接把:
.syntaxhighlighter .gutter { color: #afafaf !important; background-color: #f7f7f9 !important; border-right: 1px solid #e1e1e8 !important; /* padding: 9.5px 0 9.5px 9.5px !important; */ 直接把这段内边距去掉,看看效果还可以。 border-top-left-radius: 4px !important; border-bottom-left-radius: 4px !important; user-select: none !important; -moz-user-select: none !important; -webkit-user-select: none !important }
转载联系作者并注明出处:https://www.focusonseo.cn/hctmsl/113.html