安卓端标题空行怎么关闭?

安卓端的多级标题默认上方空一行,但空行不能删除,求大佬能写个片段使他没有空行,感谢

楼主说的空行指的是每个标题的行高太大么

对啊,相当于一个空行的高度了,之前老版本是没有这个高度的。

有大佬能弄一下吗:smile:

/* 编辑模式 - 标题上边距 */
.HyperMD-header.HyperMD-header-1.cm-line,
.HyperMD-header.HyperMD-header-2.cm-line{
  margin-top: 5px!important;
}
.HyperMD-header.HyperMD-header-3.cm-line,
.HyperMD-header.HyperMD-header-4.cm-line,
.HyperMD-header.HyperMD-header-5.cm-line,
.HyperMD-header.HyperMD-header-6.cm-line{
  margin-top: -20px!important;
}
/* 阅读模式 - 标题上边距 */
h1,h2{
  margin-top: 5px!important;
}
h3,h4,h5,h6{
  margin-top: -20px!important;
}

设置margin-top参数就可以(正负数值都可以),自己调整数值大小,HyperMD-header-xxx和hxxx就对应几级标题

感谢大佬,标题间距正常了,但标题上方任存在有阴影占位,点击阴影部分还是下面的标题有解决办法吗:kissing:

可以改padding-top来修改触发的范围

.HyperMD-header.HyperMD-header-2.cm-line{
  padding-top: 0px!important;
}

收到,谢谢大佬!