修改:文章界面样式

This commit is contained in:
jmal 2020-10-24 15:00:44 +08:00
parent c5ec212353
commit 70d10901bf
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
text-align: center;
overflow: hidden;
color: #fff;
background-color: #2e2e2e;
width: -webkit-calc(100% - -0.0625rem);
width: calc(100% - -0.0625rem);
-webkit-transition: 1s ease background-color;

View File

@ -132,7 +132,7 @@
this.pageTitle = hTag.innerText
}
let a = $('.el-main').html().match(/<h1.*?<\/h1>|<h2.*?<\/h2>/g);
let a = $('.el-main').html().match(/<h1.*?<\/h1>|<h2.*?<\/h2>|<h3.*?<\/h3>|<h4.*?<\/h4>/g);
if(a && a.length >0 ){
a = a.splice(a.length/2,a.length)
for (let i = 0; i < a.length; i++) {