当主题在使用如下css来增加二级列表的左边竖线时,会导致左右分栏(一边为编辑页面,另一边为预览页面)显示的内容滑动不同步。预览页面会突然一下跳到页面顶部。
ul ul {
position: relative;
}
ul ul::before {
content:'';
border-left: 1px solid wheat;
position: re;
left: -1px;
top:0;
bottom: 0;
}
经测试,主要是这个ul ul {position:relative;}
导致的!跟主题没关系,不管是哪个主题只要加了这个css样式,然后文中使用了二级列表,且文章足够长时就会出现如上问题。