Ueditor 代码块设置好对不齐的解决方法

帆 2024-05-01 0 阅读 0 评论

  前面我看到我设置的Ueditor 代码块有些问题,那就是它不对齐。

  

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
  }


本文来源:重庆seo博客

本文地址:https://focusonseo.cn/html/90.html

文章声明:以上内容(如有图片或视频亦包括在内)除非注明,否则均为重庆seo博客原创文章,转载或复制请以超链接形式并注明出处。

上一篇:a 标签

下一篇:Ueditor 代码块设置